Abnormal phenomenon: Use beeline or jdbc to connect to hive to execute create table. The exception is ClassNotFoundException: org.apache.hudi.hadoop.HoodieParquetInputFormat
Crete table can be executed normally with hive client
Exception analysis:
beeline is hive connected through the hiveserver2 service, check whether the jar package of the server where hiveserver2 is located exists
solution:
1. Copy the jar to hive/lib/
2. Modify hive-env.sh and add jar to
eg:
export HIVE_AUX_JARS_PATH=/home/hive/lib/json-serde-1.3.7-jar-with-dependencies.jar,/home/hive/lib/hudi-hive -bundle-0.6.0-incubating.jar
3. Restart the hiveserver2 service
/home/hive/bin/hiveserver2 --hiveconf hive.server2.thrift.port=10000 &