1
0

[HUDI-143] Excluding javax.* from utilities and spark bundles

- Plus minor code review comments
This commit is contained in:
Vinoth Chandar
2019-09-02 19:46:10 -07:00
committed by Balaji Varadarajan
parent 7a973a6944
commit d0b9b56b7d
7 changed files with 7 additions and 9 deletions

View File

@@ -38,11 +38,8 @@ public class HiveUtil {
}
}
private static Connection connection;
private static Connection getConnection(String jdbcUrl, String user, String pass) throws SQLException {
connection = DriverManager.getConnection(jdbcUrl, user, pass);
return connection;
return DriverManager.getConnection(jdbcUrl, user, pass);
}
public static long countRecords(String jdbcUrl, HoodieTableMetaClient source, String dbName, String user, String pass)

View File

@@ -43,7 +43,7 @@ public class SparkUtil {
SparkLauncher sparkLauncher = new SparkLauncher().setAppResource(currentJar)
.setMainClass(SparkMain.class.getName());
if (!StringUtils.isEmpty(propertiesFile)) {
if (!StringUtils.isNullOrEmpty(propertiesFile)) {
sparkLauncher.setPropertiesFile(propertiesFile);
}