You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/08/04 15:55:32 UTC

[GitHub] [hudi] nsivabalan commented on pull request #3387: [HUDI-2233] Use HMS To Sync Hive Meta For Spark Sql

nsivabalan commented on pull request #3387:
URL: https://github.com/apache/hudi/pull/3387#issuecomment-892775157


   my bad. I checked out the master. I did not realize we had sync mode even before this patch. Ignore my previous question. I see this code block.
   
   ```
   if (!StringUtils.isNullOrEmpty(cfg.syncMode)) {
           switch (cfg.syncMode.toLowerCase()) {
             case "hms":
               ddlExecutor = new HMSDDLExecutor(configuration, cfg, fs);
               break;
             case "hiveql":
               ddlExecutor = new HiveQueryDDLExecutor(cfg, fs, configuration);
               break;
             case "jdbc":
               ddlExecutor = new JDBCExecutor(cfg, fs);
               break;
             default:
               throw new HoodieHiveSyncException("Invalid sync mode given " + cfg.syncMode);
           }
         } else {
           ddlExecutor = cfg.useJdbc ? new JDBCExecutor(cfg, fs) : new HiveQueryDDLExecutor(cfg, fs, configuration);
         }
   ```
   
   So, basically hive sync mode has higher precedence. If not set, we will look into useJdbc. 
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org