alberttwong opened a new issue, #11847:
URL: https://github.com/apache/hudi/issues/11847
**Describe the problem you faced**
No easy way to append classpath in hudi hive sync
**To Reproduce**
In order to support commands like
```
/opt/hudi/hudi-sync/hudi-hive-sync/run_sync_tool.sh \
--metastore-uris 'thrift://hive-metastore:9083' \
--partitioned-by dt \
--base-path 's3a://warehouse/stock_ticks_cow' \
--database default \
--table stock_ticks_cow \
--sync-mode hms \
--partition-value-extractor
org.apache.hudi.hive.SlashEncodedDayPartitionValueExtractor
```
You need the jars from commands like
```
spark-shell --packages
org.apache.hudi:hudi-hive-sync-bundle:0.15.0,org.apache.thrift:libthrift:0.15.0
```
Unfortunately they download to `~/.ivy/jars`. Then you have to edit
`run_sync_tool.sh` to include
```
HADOOP_HIVE_JARS=~/.ivy2/jars/*:${HIVE_JARS}:${HADOOP_HOME}/share/hadoop/common/*:${HADOOP_HOME}/share/hadoop/mapreduce/*:${HADOOP_HOME}/share/hadoop/hdfs/*:${HADOOP_HOME}/share/hadoop/common/lib/*:${HADOOP_HOME}/share/hadoop/hdfs/lib/*
```
or something like this.
**Expected behavior**
`run_sync_tool.sh` should support classpath extensions.
**Environment Description**
* Hudi version :
* Spark version :
* Hive version :
* Hadoop version :
* Storage (HDFS/S3/GCS..) :
* Running on Docker? (yes/no) :
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```Add the stacktrace of the error.```
--
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]