Requirements
Thrift 0.13
There is no 0.13 version of Thrift in the official brew repository; one of our committers created a version in their repo to install.Protobuf
Just use the latest version v3, because the latest version of Protobuf is compatible with the v2 version of the Protobuf used in StarRocks.Maven
Openjdk 1.8 or 11
Python3
MacOS is already installed by default. Everyone’s Thrift and Protobuf installation directories may be different, you can use the brew list command to inspect:Configure the StarRocks
Download the StarRocks
Setup thirdparty directory
Createinstalled/bin directory in thirdparty.
Setting environment variables
Generate source code
Many source files in FE need to be generated manually, otherwise IDEA will report an error due to missing files. Execute the following command to automatically generate:be/build_Release/gensrc/gen_cpp.
Compile FE
Enterfe directory and use Maven to compile:
Open StarRocks in IDEA
-
Open the
StarRocksdirectory in IDEA. -
Add Coding style setting
To standardize the coding style, you should import the
fe/starrocks_intellij_style.xmlcode style file in IDEA.
Run StarRocks FE in MacOS
Use IDEA to open thefe directory.
If you execute the Main function directly in StarRocksFE.java, some errors will be reported. You only need to do some simple settings to run it smoothly.
NOTICE: StarRocksFE.java is in the fe/fe-core/src/main/java/com/starrocks directory.
- Copy the conf, bin and webroot directories from the StarRocks directory to
fedirectory:
- Enter the
fedirectory and create the log and meta folders under thefedirectory:
- Set the environment variable, as shown in the following figure:

-
Modify the priority_networks in
fe/conf/fe.confto127.0.0.1/24to prevent FE from using the current computer’s LAN IP and cause the port fail to bind. - Then you have run StarRocks FE successfully.