Skip to content

Commit

Permalink
[HUDI-4198] Fix hive config for AWSGlueClientFactory
Browse files Browse the repository at this point in the history
HiveConf needs to load fs conf to allow instantiation via AWSGlueClientFactory
  • Loading branch information
xushiyan committed Jun 6, 2022
1 parent 21ab0ff commit 2f04c15
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public HiveSyncTool(TypedProperties props, Configuration conf, FileSystem fs) {

public HiveSyncTool(HiveSyncConfig hiveSyncConfig, HiveConf hiveConf, FileSystem fs) {
super(hiveSyncConfig.getProps(), hiveConf, fs);
hiveConf.addResource(fs.getConf());
// TODO: reconcile the way to set METASTOREURIS
if (StringUtils.isNullOrEmpty(hiveConf.get(HiveConf.ConfVars.METASTOREURIS.varname))) {
hiveConf.set(HiveConf.ConfVars.METASTOREURIS.varname, hiveSyncConfig.metastoreUris);
Expand Down

0 comments on commit 2f04c15

Please sign in to comment.