MyLanPangzi edited a comment on pull request #2719:
URL: https://github.com/apache/hudi/pull/2719#issuecomment-834130415


   @vinothchandar  i think the hive dependencies too many to control...
   i can use anthor way to mapping hive table to hudi table.
   e.g
   CREATE EXTERNAL TABLE t1
   (
       `_hoodie_commit_time`    STRING,
       `_hoodie_commit_seqno`   STRING,
       `_hoodie_record_key`     STRING,
       `_hoodie_partition_path` STRING,
       `_hoodie_file_name`      STRING,
       shopid                   STRING
   ) partitioned by (`sdt` 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'
       LOCATION 'hdfs://nameservice1/hudi/t1';
   
   ALTER TABLE dwd_sale_sale_detail_rt ADD
       PARTITION (`sdt` = '20210414') LOCATION 
'hdfs://nameservice1/hudi/t1//20210414';
   


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


Reply via email to