samserpoosh opened a new issue, #11029:
URL: https://github.com/apache/hudi/issues/11029

   This is a pretty small/minor issue I noticed while working with the 
`HiveSyncTool`. Essentially what's being logged does **not** match what's 
actually being executed:
   
   
https://github.com/apache/hudi/blob/40d4f489389083e3c6d69954361d3de4aec8186a/hudi-sync/hudi-hive-sync/run_sync_tool.sh#L54-L55
   
   As you see in the above snippet, the JARs passed to the `java -cp` command 
have one order when they're logged and another when the command is actually 
executed. I made the below change on my end and was able to run the 
`HiveSyncTool` without any issues. But with the original ordering, I was 
getting `ClassNotFound` exception.
   
   ```diff
   echo "Running Command : java -cp 
${HADOOP_HIVE_JARS}:${HADOOP_CONF_DIR}:$HUDI_HIVE_UBER_JAR 
org.apache.hudi.hive.HiveSyncTool $@"
   - java -cp $HUDI_HIVE_UBER_JAR:${HADOOP_HIVE_JARS}:${HADOOP_CONF_DIR} 
org.apache.hudi.hive.HiveSyncTool "$@"
   + java -cp ${HADOOP_HIVE_JARS}:${HADOOP_CONF_DIR}:$HUDI_HIVE_UBER_JAR 
org.apache.hudi.hive.HiveSyncTool "$@" 
   ```
   
   I'm happy to submit a PR IF you all think this is indeed something that 
should be resolved. Thanks!


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

Reply via email to