一.在shell中编译impala的frontend代码
cd /home/data2/wangyh/Impala
. bin/impala-config.sh
bin/start-impala-cluster.py -s 1 启动impala
cd fe
mvn eclipse:eclipse 生成eclipse项目
二.如何在eclipse debug impala的frontend代码
1. 在eclipse里导入impala-fe项目
File->import
2. 在Remote java Application添加connect 端口为30000 project name为:impala-fronted
3.点击debug 的impala-fe
4.
在impala-shell中执行相应的sql语句,eclipse就会进行代码跟踪。
三.遇到的问题:
1. 在Eclipse中Debug 显示source not found
Debug 视图下
->在调试的线程上 右键单击
->选择Edit Source Lookup Path
->选择Add
->选择Java Project
选择相应的Project 进行OK确定即可
2. 遇到attch到localhost:30000端口时,Failed to connect to remote VM. Connection refused.
netstat –n|grep 30000显示已建立连接,将该连接切断,就可以连接到remote VM.
如何在eclipse debug impala前端
猜你喜欢
转载自wangyh-87.iteye.com/blog/2151742
今日推荐
周排行