Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class BigQuerySyncTool extends HoodieSyncTool {
public BigQuerySyncTool(Properties props) {
// will build file writer, client, etc. from configs
super(props);
this.config = new BigQuerySyncConfig(props);
this.config = new BigQuerySyncConfig(this.props);
this.tableName = config.getString(BIGQUERY_SYNC_TABLE_NAME);
this.manifestTableName = tableName + SUFFIX_MANIFEST;
this.versionsTableName = tableName + SUFFIX_VERSIONS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class AdbSyncTool extends HoodieSyncTool {

public AdbSyncTool(Properties props) {
super(props);
this.config = new AdbSyncConfig(props);
this.config = new AdbSyncConfig(this.props);
this.databaseName = config.getString(META_SYNC_DATABASE_NAME);
this.tableName = config.getString(META_SYNC_TABLE_NAME);
this.syncClient = new HoodieAdbJdbcClient(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public DataHubSyncTool(Properties props) {

public DataHubSyncTool(Properties props, Configuration hadoopConf, Option<HoodieTableMetaClient> metaClientOption) {
super(props, hadoopConf);
this.config = new DataHubSyncConfig(props);
this.config = new DataHubSyncConfig(this.props);
this.tableName = config.getString(META_SYNC_TABLE_NAME);
this.metaClient = metaClientOption.orElseGet(() -> HoodieTableMetaClient.builder()
.setConf(HadoopFSUtils.getStorageConfWithCopy(config.getHadoopConf()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public HiveSyncTool(Properties props, Configuration hadoopConf) {
hadoopConfForSync = hadoopConf;
}

this.config = new HiveSyncConfig(props, hadoopConfForSync);
this.config = new HiveSyncConfig(this.props, hadoopConfForSync);
this.databaseName = config.getStringOrDefault(META_SYNC_DATABASE_NAME);
this.tableName = config.getStringOrDefault(META_SYNC_TABLE_NAME);
initSyncClient(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class GlobalHiveSyncTool extends HiveSyncTool {

public GlobalHiveSyncTool(Properties props, Configuration hadoopConf) {
super(props, hadoopConf);
this.config = new GlobalHiveSyncConfig(props, hadoopConf);
this.config = new GlobalHiveSyncConfig(this.props, hadoopConf);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.hudi.sync.common;

import org.apache.hudi.common.config.TypedProperties;
import org.apache.hudi.common.util.ConfigUtils;
import org.apache.hudi.common.util.HadoopConfigUtils;

import org.apache.hadoop.conf.Configuration;
Expand All @@ -39,7 +40,9 @@ public HoodieSyncTool(Properties props) {
}

public HoodieSyncTool(Properties props, Configuration hadoopConf) {
this.props = props;
TypedProperties mergedProps = ConfigUtils.loadGlobalProperties();
mergedProps.putAll(props);
this.props = mergedProps;
this.hadoopConf = hadoopConf;
}

Expand Down
Loading