ykPrograWorld opened a new issue, #5795: URL: https://github.com/apache/hudi/issues/5795
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** A clear and concise description of the problem. **To Reproduce** Steps to reproduce the behavior: 1. cd hudi-0.11.0/hudi-sync/hudi-hive-sync 2. ./run_sync_tool.sh --jdbc-url jdbc:hive2:\/\/localhost:10000 --user hive --pass hive --base-path hdfs://localhost:9000/user/data/hudi/test9 --database default --table test9 **Expected behavior** hudi's metadata is synchronized to hive **Environment Description** * Hudi version : 0.11.0 * Spark version : * Hive version : 2.3.9 * Hadoop version : 2.7.3 * Storage (HDFS/S3/GCS..) : HDFS * Running on Docker? (yes/no) : no **Additional context** I checked the hudi-hive-sync-bundle-0.11.0.jar package path in the script, and it exists, and I tried some methods, but it didn't work. **Stacktrace** ``` setting hadoop conf dir 2022-06-08 20:00:41,644 WARN [main] util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 2022-06-08 20:00:42,153 INFO [main] conf.HiveConf (HiveConf.java:findConfigFile(187)) - Found configuration file file:/Users/yekai/opt/apache-hive-2.3.9-bin/conf/hive-site.xml 2022-06-08 20:00:42,595 INFO [main] table.HoodieTableMetaClient (HoodieTableMetaClient.java:<init>(117)) - Loading HoodieTableMetaClient from hdfs://localhost:9000/user/data/hudi/test9 2022-06-08 20:00:42,741 INFO [main] table.HoodieTableConfig (HoodieTableConfig.java:<init>(242)) - Loading table properties from hdfs://localhost:9000/user/data/hudi/test9/.hoodie/hoodie.properties 2022-06-08 20:00:42,821 INFO [main] table.HoodieTableMetaClient (HoodieTableMetaClient.java:<init>(136)) - Finished Loading Table of type COPY_ON_WRITE(version=1, baseFileFormat=PARQUET) from hdfs://localhost:9000/user/data/hudi/test9 2022-06-08 20:00:42,821 INFO [main] table.HoodieTableMetaClient (HoodieTableMetaClient.java:<init>(139)) - Loading Active commit timeline for hdfs://localhost:9000/user/data/hudi/test9 2022-06-08 20:00:42,893 INFO [main] timeline.HoodieActiveTimeline (HoodieActiveTimeline.java:<init>(131)) - Loaded instants upto : Option{val=[==>20220608193400815__commit__INFLIGHT]} Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/config/Lookup at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at org.apache.hudi.hive.ddl.JDBCExecutor.createHiveConnection(JDBCExecutor.java:101) at org.apache.hudi.hive.ddl.JDBCExecutor.<init>(JDBCExecutor.java:56) at org.apache.hudi.hive.HoodieHiveClient.<init>(HoodieHiveClient.java:85) at org.apache.hudi.hive.HiveSyncTool.initClient(HiveSyncTool.java:95) at org.apache.hudi.hive.HiveSyncTool.<init>(HiveSyncTool.java:89) at org.apache.hudi.hive.HiveSyncTool.main(HiveSyncTool.java:433) Caused by: java.lang.ClassNotFoundException: org.apache.http.config.Lookup at java.net.URLClassLoader.findClass(URLClassLoader.java:387) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 9 more``` -- 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]
