Hive 执行SQL Error running query: java.lang.NullPointerException

Hive 执行SQL Error running query: java.lang.NullPointerException,第1张


只是切换下数据库,就会报Error running query: java.lang.NullPointerException

网上并未查到相关解决方案

原本开启事务的配置如下,但是set hive.enforce.bucketing = true; 从Hive2.0开始不再需要

set hive.support.concurrency = true; --Hive是否支持并发
set hive.enforce.bucketing = true; --从Hive2.0开始不再需要  是否开启分桶功能
set hive.exec.dynamic.partition.mode = nonstrict; --动态分区模式  非严格
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
set hive.compactor.initiator.on = true; --是否在Metastore实例上运行启动线程和清理线程
set hive.compactor.worker.threads = 1; --在此metastore实例上运行多少个压缩程序工作线程

删掉set hive.enforce.bucketing = true;并且上述指令挨个执行,不要批量执行

set hive.support.concurrency = true; --Hive是否支持并发
set hive.exec.dynamic.partition.mode = nonstrict; --动态分区模式  非严格
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
set hive.compactor.initiator.on = true; --是否在Metastore实例上运行启动线程和清理线程
set hive.compactor.worker.threads = 1; --在此metastore实例上运行多少个压缩程序工作线程

具体原因不清楚,但是删掉之后才可以用

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/801681.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-07
下一篇 2022-05-07

发表评论

登录后才能评论

评论列表(0条)

保存