Setting Up Development Environment for FE using IntelliJ IDEA
- Git
- JDK1.8+
- Maven (Optional, IDEA shipped embedded Maven3)
Clone Code
If your are only interested in FE module, and for some reason you can’t or don’t want to compile full thirdparty libraries, the minimum tool required for FE module is , so you can manually install thrift
and copy or create a link of the executable thrift
command to ./thirdparty/installed/bin
.
Doris build against thrift
0.13.0 ( note : Doris
0.15 and later version build against thrift
0.13.0 , the previous version is still thrift
0.9.3)
If your are using macOS, try and will get thrift
0.13.0 installed at /usr/local/opt/thrift@0.13.0/bin/thrift
, then create a soft link to ./thirdparty/installed/bin/thrift
.
For Windows users, download thrift
0.13.0 from http://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.exe
, and put it into thirdparty/installed/bin/
folder.
If fails, run following command first to try to install modules into maven local repository, then re-run above command.
You can also use IDE embedded GUI tools to run maven command to generate sources
If you are developing on the OS which lack of support to run and make
such as Windows, a workround here is generate codes in Linux and copy them back. Using Docker should also be an option.
Import into IDEA
Follow the picture to create the folders
- Build
ui
project , and copy files from directoryui/dist
into directorywebroot
( you can skip this step , if you don’t needDoris
UI )
Copy below content into conf/fe.conf
and tune it to fit your environment.
Setting Environment Variables
Follow the picture to set runtime Environment Variables in IDEA
Having fun with Doris FE!