原始碼編譯hive

2021-08-25 13:22:18 字數 848 閱讀 6590

hive -hiveconf hive.root.logger=debug,console(debug模式執行hive)

原始碼編譯hive

環境:hadoop 0.20.2

hive 0.6

$ svn co  hive

$ cd hive

$ ant clean package(ant package -dhadoop.version=0.20.2)

$ cd build/dist

$ ls

readme.txt

bin/ (all the shell scripts)

lib/ (required jar files)

conf/ (configuration files)

examples/ (sample input and query files)

需要的工具:ant 具體安裝,請自己在網上查詢

1.使用svn檢出hive的源**:

可參考:

修改:build.properties檔案

將hadoop.mirror=

修改為:

hadoop.mirror=具體可用的mirror可參考 )

hadoop.security.url=

修改hadoop版本:

hadoop.version=0.19.2

修改shims目錄下的build.xml跟ivy.xml,將裡面不需要的hadoop的版本刪除。如果列表中沒有自己需要的hadoop,可修改。

bulid.xml:

ivy.xml:

至此,在hive源**目錄下就可以使用ant命令進行編譯,編譯後的結果在build目錄下

hive原始碼解析(2)之編譯前序

antlr another tool for languagerecognition 一種語言識別工具 antlr提供了一種語言工具框架 定義標示符,關鍵字 詞法分析 定義表示式 語法分析 可以將文字轉換成抽象語法樹 ast 樹的解析 樹分析器 1 詞法分析器lexer 詞法分析識別的是字元流 通過...

手動編譯原始碼安裝mysql 原始碼編譯安裝mysql

1 安裝mysql需要的依賴包 yum y install ncurses devel libaio devel 2 安裝編譯mysql需要的軟體 mysql 有3個版本分支 5.0 5.1系列 5.4 5.7系列 6.0 7.1群集產品系列 最早的mysql 5.0 5.1產品 直接.config...

chromium 原始碼編譯

以下內容基於 linux ubuntu3.0.0 16 generic 28 ubuntu smp fri jan 27 17 44 39 utc 2012 x86 64 gnu linux 參考網頁給出的步驟 1 安裝 depot tools,cd 到你想要的工作目錄 1.1 通過 svn 獲取 ...