只是切换下数据库,就会报Error running query: java.lang.NullPointerException
网上并未查到相关解决方案
原本开启事务的配置如下,但是set hive.enforce.bucketing = true; 从Hive2.0开始不再需要
set hive.support.concurrency = true;
set hive.enforce.bucketing = true;
set hive.exec.dynamic.partition.mode = nonstrict;
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
set hive.compactor.initiator.on = true;
set hive.compactor.worker.threads = 1;
删掉set hive.enforce.bucketing = true;并且上述指令挨个执行,不要批量执行
set hive.support.concurrency = true;
set hive.exec.dynamic.partition.mode = nonstrict;
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
set hive.compactor.initiator.on = true;
set hive.compactor.worker.threads = 1;
具体原因不清楚,但是删掉之后才可以用
|