You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This document is to help Impala front-end development using IntelliJ 

IntelliJ Vs. Eclipse

There is no winner. If you are not sure which IDE is more suitable for you, please read the link and compare pros and cons: https://www.quora.com/Which-is-better-for-Java-development-Eclipse-or-IntelliJ-IDEA

Prerequisites

Setup

  1. Launch IntelliJ IDEA. You can see the window. Click "Open".

  2. Find "pom.xml" and open it.
  3. Click "Open as Project"
  4. Automatically retrieve the files as described in pom.xml for a while.
  5. When you click "build project", unfortunately it failed due to insufficient libraries.
  6. My workaround is adding the relevant libraries by manual using "File-Project Structure". (Please share if you have a better idea.)
  7. Choose "Libraries" under "Project Settings" and then click "+" mark on the top of the right tab.
  8. Choose "Java" and add all the *.jars under target/ and target/dependency. You don't have to do it once. It is okay to add jars several times.
  9. Currently I could not find junit-*.jar under fe. You may find it ${IMPALA_HOME}/testdata/target/dependency. Or just download a recent one from here: https://mvnrepository.com/artifact/junit/junit
  10. In my case, I did adding operation three times as below.
  11. Re-run "Build Project". If you can see "symbol not found", there is any missing libraries.


Remote Debugging

  1. Choose "Run-Edit Configurations"
  2. Press the + button. Scroll down the list menu and choose "Remote"
  3. Describe some information such as Name, Host, Port. Use port 30000 for the first impalad, port 30001 for the second impalad.
  4. Press debug icon on the top of the right side.
  5. Connected the Impala fronet end successfully!
  6. Let's set a breakpoint.
  7. Execute a query like this:
  8. Enjoy debugging!

 

  • No labels