hive客户端远程debug
idea 选中Edit Congigurations 添加remote如下图
图中debug方式为listen (本地不通线上,线上通本地)
远程 hive 客户端修改{HIVE_HOME}/bin/ext/debug.sh
将HIVE_MAIN_CLIENT_DEBUG_OPTS、 HIVE_CHILD_CLIENT_DEBUG_OPTS修改为如图
之后 idea点击debug按钮等待远程连接,远程hive客户端启动
{HIVE_HOME}/bin/hive --debug
报错如下
WARNING: Use "yarn jar" to launch YARN applications.
Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
原因是jvm冲突。将参数去掉-XX:+UseParallelGC
重来一遍就ok了