How to debug impala front end in eclipse

one. Compile the frontend code of impala in the shell
cd /home/data2/wangyh/Impala
.bin/impala-config.sh
bin/start-impala-cluster.py -s 1 Start impala

cd fe
mvn eclipse:eclipse Generate eclipse project

2 . How to debug the frontend code of impala
in eclipse 1. Import the impala-fe project in eclipse
File->import




2. In the Remote java Application add the connect port as 30000 The project name is: impala-fronted



3. Click on the debug impala-fe

4.
Execute the corresponding sql statement in impala-shell, and eclipse will track the code.


three. Problems encountered:
1. Debug in Eclipse shows source not found
under the Debug view
-> right-click on the debugged thread
-> select Edit Source Lookup Path
-> select Add
-> select Java Project
and select the corresponding Project to OK OK

2. When encountering the attach to localhost:30000 port, Failed to connect to remote VM. Connection refused.
netstat –n|grep 30000 shows that the connection has been established, cut the connection, and you can connect to the remote VM.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326440466&siteId=291194637