THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Prerequisites
- Download IntelliJ and CLion. You can request for an open source license for CLion.
- Bootstrap the system for Impala development. See this link.
- Always source $IMPALA_HOME/bin/impala-config.sh prior to launching IntelliJ or CLion.
- For be able to attach to a local process, follow the instruction here.
Front-end Development using IntelliJ
Setup
- Launch IntelliJ and click "Open".
- Select the $IMPALA_HOME/fe directory.
Run/Debug Unit Tests
- Go to Run --> Edit Configurations.
- Select Defaults --> JUnit
- Add LD_LIBRARY_PATH with the value of $IMPALA_HOME/be/latest/service.
- Run all JUnit tests.
Remote Debugging
- Go to Run --> Edit Configurations.
- Click on the + sign and select Remote.
- Add impalad-debug configuration to debug impalad with a port number of 30000.
- Add catalog-debug configuration to debug catalog with a port number of 30003.
- Set a breakpoint.
- Run impalad-debug.
- Execute a command in Impala shell.
- Start debugging.
Backend Development using CLion
Setup
- Launch CLion and click "Open".
- Select $IMPALA_HOME directory.
Local Debugging
- Go to Run --> Attach to Local Processes.
- Set a breakpoint.
- Execute a command in Impala shell.
- Start debugging.
This document is to help Impala front-end development using IntelliJ
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
...
...
Remote Debugging
- Choose "Run-Edit Configurations".
- Press the + button. Scroll down the list menu and choose "Remote".
- Fill in some required information such as Name, Host and 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!