(1)下载源码
git clone https://git-wip-us.apache.org/repos/asf/hive.git
git clone https://github.com/apache/hive.git
(2)编译
cd hive
mvn clean install -DskipTests
mvn eclipse:clean
mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs
cd itests
mvn clean install -DskipTests
mvn eclipse:clean
mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs
参考 https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeveloperFAQ-HowdoIimportintoEclipse?