nsivabalan commented on a change in pull request #2443: URL: https://github.com/apache/hudi/pull/2443#discussion_r579750318
########## File path: hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java ########## @@ -58,8 +58,8 @@ private final HiveSyncConfig cfg; private HoodieHiveClient hoodieHiveClient = null; - private final String snapshotTableName; - private final Option<String> roTableTableName; + private String snapshotTableName = null; + private Option<String> roTableTableName = null; Review comment: guess it's a typo. Probably we can fix it while you are at it. ########## File path: hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncTool.java ########## @@ -57,13 +57,23 @@ public static final String SUFFIX_READ_OPTIMIZED_TABLE = "_ro"; private final HiveSyncConfig cfg; - private final HoodieHiveClient hoodieHiveClient; + private HoodieHiveClient hoodieHiveClient = null; private final String snapshotTableName; private final Option<String> roTableTableName; public HiveSyncTool(HiveSyncConfig cfg, HiveConf configuration, FileSystem fs) { super(configuration.getAllProperties(), fs); - this.hoodieHiveClient = new HoodieHiveClient(cfg, configuration, fs); + + try { + this.hoodieHiveClient = new HoodieHiveClient(cfg, configuration, fs); + } catch (RuntimeException e) { + if (cfg.ignoreConnectException) { + LOG.error("Got runtime exception when hive syncing", e); Review comment: Did you address this feedback ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org