用户登录
用户注册

分享至

java查询impala

  • 作者: 未婚夫的未婚妻13494116
  • 来源: 51数据库
  • 2020-10-03
一.在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前端
软件
前端设计
程序设计
Java相关