Setup StarRocks FE 開発環境を IDEA で設定する
このチュートリアルは macOS に基づいており、Apple Chip(M1, M2)でテストされています。macOS を使用していない場合でも、このチュートリアルを参考にすることができます。
必要条件
Thrift 0.13
公式の brew リポジトリには Thrift の 0.13 バージョンが存在しません。私たちのコミッターの一人が、自分のリポジトリにインストール用のバージョンを作成しました。
brew install alberttwong/thrift/thrift@0.13
Thrift を 正常にインストールした後、次のコマンドを実行して確認できます。
$ thrift -version
Thrift version 0.13.0
Protobuf
最新バージョン v3 を使用してください。なぜなら、最新バージョンの Protobuf は StarRocks で使用されている v2 バージョンの Protobuf と互換性があるからです。
brew install protobuf
Maven
brew install maven
Openjdk 1.8 または 11
brew install openjdk@11
Python3
MacOS にはデフォルトでインストールされています。
各自の Thrift と Protobuf のインストールディレクトリは異なる場合があります。brew list コマンドを使用して確認できます。
brew list thrift@0.13.0
brew list protobuf
StarRocks の設定
StarRocks のダウンロード
git clone https://github.com/StarRocks/starrocks.git
thirdparty ディレクトリの設定
thirdparty に installed/bin ディレクトリを作成します。
cd starrocks && mkdir -p thirdparty/installed/bin
次に、Thrift と Protobuf のソフトリンクをそれぞれ作成します。
ln -s /opt/homebrew/bin/thrift thirdparty/installed/bin/thrift
ln -s /opt/homebrew/bin/protoc thirdparty/installed/bin/protoc