[Bug](external iceberg table)Fix iceberg on ha-hdfs unknown hostname bug. #11844

This commit is contained in:
Jibing-Li
2022-08-17 16:21:30 +08:00
committed by GitHub
parent 98243e99ae
commit 790a1d681f

View File

@ -47,6 +47,9 @@ public class HiveCatalog implements IcebergCatalog {
public void initialize(IcebergProperty icebergProperty) {
// set hadoop conf
Configuration conf = new HdfsConfiguration();
for (Map.Entry<String, String> entry : icebergProperty.getDfsProperties().entrySet()) {
conf.set(entry.getKey(), entry.getValue());
}
hiveCatalog.setConf(conf);
// initialize hive catalog
Map<String, String> catalogProperties = new HashMap<>();