Created
April 24, 2020 06:51
-
-
Save mykidong/76a418b7eb2f7b52c5a51ddb8d48372c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void buildSchema() | |
{ | |
String dbTable = parametersAsJava.get(JdbcHiveOptions.dbTable); | |
String hiveJdbcUrl = parametersAsJava.get(JdbcHiveOptions.hiveJdbcUrl); | |
String hiveJdbcUser = parametersAsJava.get(JdbcHiveOptions.hiveJdbcUser); | |
String hiveJdbcPassword = parametersAsJava.get(JdbcHiveOptions.hiveJdbcPassword); | |
String hiveMetastoreUrl = parametersAsJava.get(JdbcHiveOptions.hiveMetastoreUrl); | |
String hiveMetastoreUser = parametersAsJava.get(JdbcHiveOptions.hiveMetastoreUser); | |
String hiveMetastorePassword = parametersAsJava.get(JdbcHiveOptions.hiveMetastorePassword); | |
HiveMetaResolver hiveMetaResolver = new HiveMetaResolver(dbTable, | |
hiveJdbcUrl, | |
hiveJdbcUser, | |
hiveJdbcPassword, | |
hiveMetastoreUrl, | |
hiveMetastoreUser, | |
hiveMetastorePassword); | |
this.schema = hiveMetaResolver.getSparkSchema(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment