aznwarmonkey opened a new issue #4788:
URL: https://github.com/apache/hudi/issues/4788
Hello,
I currently have two hudi tables (fact and dimension table) that needs to be
sync to hive metastore,
I was able to sync the dimension table successfully using `run_sync_tool.sh`
However when I tried calling it on the fact table the error message I am
getting is the following:
```java
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:294)
at
org.apache.hudi.common.table.TableSchemaResolver.getTableParquetSchema(TableSchemaResolver.java:201)
at
org.apache.hudi.sync.common.AbstractSyncHoodieClient.getDataSchema(AbstractSyncHoodieClient.java:147)
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)
```
The command I am running is exactly the same as fact / dimension with the
exception of the the partition columns. Below is the command:
```sh
/bin/sh /usr/lib/hudi/bin/run_sync_tool.sh \
--jdbc-url jdbc:hive2://localhost:10000/ \
--user "" --pass "" --partitioned-by enrich_date_idx,enrich_country_code \
--base-path s3://path/to/data/ \
--database hudi --table fact \
--partition-value-extractor org.apache.hudi.hive.MultiPartKeysValueExtractor
```
I am using Hudi 0.9 on AWS EMR built binaries
--
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]