nandini57 opened a new issue #1629:
URL: https://github.com/apache/incubator-hudi/issues/1629


   In Hudi-0.5.1 HiveSyncTool.java why MERGE_ON_READ tables mandate a _rt 
suffix?
   
    case MERGE_ON_READ:
           this.snapshotTableName = cfg.tableName + SUFFIX_SNAPSHOT_TABLE;
   
   Also when i run my localhive-server ,and run HiveSyncTool i keep getting the 
below execption while creating tables
   
   Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: 
MetaException(message:java.lang.IllegalArgumentException: Can not create a Path 
from an empty string)
   
   .However, if i do create with updatesql it works fine.Any pointers on the 
mismatch?
   
    if (!hiveClient.doesTableExist (tableName)) {
               hiveClient.updateHiveSQL (createTableMOR (tableName, "default"));
           }
   {
           String sql ="CREATE EXTERNAL TABLE IF NOT EXISTS 
`REPLACE_DB`.`REPLACE_TBL`( `_hoodie_commit_time` string, 
`_hoodie_commit_seqno` string, `_hoodie_record_key` string, 
`_hoodie_partition_path` string, `_hoodie_file_name` string, `id` bigint, 
`name` string, `team` string, `ts` bigint) PARTITIONED BY (`recordKey` string) 
ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' 
STORED AS INPUTFORMAT 
'org.apache.hudi.hadoop.realtime.HoodieParquetRealtimeInputFormat' OUTPUTFORMAT 
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'";
           sql=sql.replace ("REPLACE_TBL",tableName).replace 
("REPLACE_DB",database);
           return sql;
       };


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


Reply via email to