hive beeline ClassNotFoundException

异常现象:使用beeline 或者jdbc 连接hive 执行 create table 异常为 ClassNotFoundException: org.apache.hudi.hadoop.HoodieParquetInputFormat

使用hive client可以正常执行crete table

异常分析:
beeline 是通过hiveserver2 服务连接的hive,检查hiveserver2所在服务器jar包是否存在

解决方案:

1、将jar拷贝到hive/lib/

2、修改hive-env.sh ,将jar加入
例如:
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、 重启hiveserver2服务
/home/hive/bin/hiveserver2 --hiveconf hive.server2.thrift.port=10000 &

猜你喜欢

转载自blog.51cto.com/zhsusn/2592054