THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Info | ||
---|---|---|
| ||
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
- Please read the document before starting this: Eclipse Setup for Impala Development
- Please build your own dev. system: Bootstrapping an Impala Development Environment From Scratch
- The build is required due to the dependent jars.
- Please skip this step if you already have IntelliJ license.
- IntelliJ Community Edition is free for open-source developer. Please download Community Edition here: https://www.jetbrains.com/idea/download
Setup
- Launch IntelliJ IDEA. You can see the window. Click "Open".
- Find "pom.xml" and open it.
- Click "Open as Project"
- Automatically retrieve the files as described in pom.xml for a while.
- When you click "build project", unfortunately it failed due to insufficient libraries.
- My workaround is adding the relevant libraries by manual using "File-Project Structure". (Please share if you have a better idea.)
- Choose "Libraries" under "Project Settings" and then click "+" mark on the top of the right tab.
- 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.
- 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
- In my case, I did adding operation three times as below.
- Re-run "Build Project". If you can see "symbol not found", there is any missing libraries.
Remote Debugging
- Choose "Run-Edit Configurations"
- Press the + button. Scroll down the list menu and choose "Remote"
- Describe some information such as Name, Host, Port. Use port 30000 for the first impalad, port 30001 for the second impalad.
- Press debug icon on the top of the right side.
- Connected the Impala fronet end successfully!
- Let's set a breakpoint.
- Execute a query like this:
- Enjoy debugging!
...