hive 远程debug

来源:互联网 发布:掌上公交软件下载 编辑:程序博客网 时间:2024/06/06 12:24

1、编译hive的源代码(mvn eclipse:eclipse),把编译后的工程导入eclipse

2、启动hive,命令hive --debug 。

[root@hadoop2 ~]# hive --debug
Listening for transport dt_socket at address: 8000

3、在eclipse里面,打开Debug Configurations  -> Remote Java Application. 选择CliDriver,输入 Host和Port。



4、刚才阻塞的hive会进入hive编辑状态,写一个hql,并运行。

5、eclipse如果打了断点的话就能,进入debug了

0 0
原创粉丝点击