hive 锁相关
show locks; 查看锁
unlock table 表名; 释放锁
发现释放不了锁,执行下面
set hive.support.concurrency=false;
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager;
然后在unlock
还是不行的的话:
select * from HIVE_LOCKS;
关闭hiveserver2
1、查出Hiveserver进程:
ps -aux| grep hiveserver2
2、kill掉进程
kill -9 进程号
远程debug
hive --debug -hiveconf hive.root.logger=DEBUG,console
修改内存大小
bin/hive-config.sh
export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-2048}
java.lang.OutOfMemoryError: PermGen space的问题
在hive/conf/hive-env.sh文件中,加入下面的内容,问题得以解决:
export HADOOP_OPTS="$HADOOP_OPTS -XX:PermSize=512M -XX:MaxPermSize=1024M"
check the manual that corresponds to your Mysql server version foe the right syntax to use
更新mysql的驱动包