Skip to content

Commit

Permalink
[HUDI-4510] Repair config "hive_sync.metastore.uris" in flink sql hiv…
Browse files Browse the repository at this point in the history
…e schema sync is not effective (#6257)
  • Loading branch information
5herhom authored Aug 2, 2022
1 parent 251b63e commit 84d195d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public static HiveSyncContext create(Configuration conf, SerializableConfigurati
org.apache.hadoop.conf.Configuration hadoopConf = HadoopConfigurations.getHadoopConf(conf);
HiveConf hiveConf = new HiveConf();
hiveConf.addResource(serConf.get());
if (!FlinkOptions.isDefaultValueDefined(conf, FlinkOptions.HIVE_SYNC_METASTORE_URIS)) {
hadoopConf.set(HiveConf.ConfVars.METASTOREURIS.varname, conf.getString(FlinkOptions.HIVE_SYNC_METASTORE_URIS));
}
hiveConf.addResource(hadoopConf);
return new HiveSyncContext(props, hiveConf);
}
Expand Down

0 comments on commit 84d195d

Please sign in to comment.