LoginSignup
2

More than 5 years have passed since last update.

Apache Hive のビルド周りについて

Last updated at Posted at 2013-03-29

Apache Hive のビルド周りに関するドキュメントが不足しているように見えたので,記述しておきます.

レポジトリからのソースコードの取得

Apache Hive のレポジトリは,svn か git で利用可能です.

svn co http://svn.apache.org/repos/asf/hive/trunk hive
git clone https://github.com/apache/hive.git

ビルド

ソースコードをダウンロード後,ソースコードのルートディレクトリで以下のコマンドを実行します.

ant 

配布用パッケージを作成する.

ソースコードをダウンロード後,ソースコードのルートディレクトリで以下のコマンドを実行します.

ant package

$HIVE_SRC_DIR/build/dist にビルド済みの配布パッケージが生成されます.

ソースコードから eclipse プロジェクトを生成する

ソースコードをダウンロード後,ソースコードのルートディレクトリで以下のコマンドを実行します.

ant eclipse-files

その後,eclipse のメニューより,[Import] > [Existing Projetcts into Workspace] で elicpse でインポートできます.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2