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了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM