[ 
https://issues.apache.org/jira/browse/HUDI-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17393286#comment-17393286
 ] 

ASF GitHub Bot commented on HUDI-2233:
--------------------------------------

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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> [SQL] Hive sync is not working
> ------------------------------
>
>                 Key: HUDI-2233
>                 URL: https://issues.apache.org/jira/browse/HUDI-2233
>             Project: Apache Hudi
>          Issue Type: Sub-task
>            Reporter: Sagar Sumit
>            Assignee: pengzhiwei
>            Priority: Major
>              Labels: pull-request-available, release-blocker
>             Fix For: 0.9.0
>
>
>  
> {code:java}
> java.lang.NoClassDefFoundError: org/apache/calcite/rel/type/RelDataTypeSystem 
> at 
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzerFactory.get(SemanticAnalyzerFactory.java:318)
>  at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:484) at 
> org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1317) at 
> org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1457) at 
> org.apache.hadoop.hive.ql.Driver.run(Driver.java:1237) at 
> org.apache.hadoop.hive.ql.Driver.run(Driver.java:1227) at 
> org.apache.hudi.hive.HoodieHiveClient.updateHiveSQLs(HoodieHiveClient.java:458)
>  at 
> org.apache.hudi.hive.HoodieHiveClient.updateHiveSQLUsingHiveDriver(HoodieHiveClient.java:448)
>  at 
> org.apache.hudi.hive.HoodieHiveClient.updateHiveSQL(HoodieHiveClient.java:426)
>  at 
> org.apache.hudi.hive.HoodieHiveClient.createTable(HoodieHiveClient.java:322) 
> at org.apache.hudi.hive.HiveSyncTool.syncSchema(HiveSyncTool.java:230)
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to