[HUDI-143] Excluding javax.* from utilities and spark bundles
- Plus minor code review comments
This commit is contained in:
committed by
Balaji Varadarajan
parent
7a973a6944
commit
d0b9b56b7d
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user