当前位置: 代码迷 >> Eclipse >> 怎么在eclipse debug impala前端
  详细解决方案

怎么在eclipse debug impala前端

热度:82   发布时间:2016-04-23 00:18:58.0
如何在eclipse debug impala前端
一.在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.
  相关解决方案