codejoyan opened a new issue #4176:
URL: https://github.com/apache/hudi/issues/4176


   Hudi - 0.9.0
   Spark - 2.4.7
   
   I created a Hudi COW table and trying to do Hive sync. Getting the below 
error.
   Please suggest the workaround and also any other way to hive sync for an 
already existing hudi dataset
   
   **Command used:**
   run_sync_tool.sh \
     --jdbc-url "jdbc:hive2://host:2181" \
     --user hive \
     --pass hive \
     --partitioned-by col1,col2 \
     --base-path gs://basepath \
     --database hudi_schema \
     --table hudi_cow_table
     
     **Error Message**
     Exception in thread "main" java.lang.NoSuchFieldError: TIMESTAMP_MICROS
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertLogicalType(AvroSchemaConverter.java:390)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:186)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertUnion(AvroSchemaConverter.java:214)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:171)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:130)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertField(AvroSchemaConverter.java:227)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convertFields(AvroSchemaConverter.java:124)
        at 
org.apache.parquet.avro.AvroSchemaConverter.convert(AvroSchemaConverter.java:115)
        at 
org.apache.hudi.common.table.TableSchemaResolver.convertAvroSchemaToParquet(TableSchemaResolver.java:286)
        at 
org.apache.hudi.common.table.TableSchemaResolver.getTableParquetSchema(TableSchemaResolver.java:193)
        at 
org.apache.hudi.sync.common.AbstractSyncHoodieClient.getDataSchema(AbstractSyncHoodieClient.java:142)
        at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:170)
        at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:131)
        at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:117)
        at org.apache.hudi.hive.HiveSyncTool.main(HiveSyncTool.java:359)
   


-- 
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-unsubscr...@hudi.apache.org

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


Reply via email to