下载:apache-hive-1.2.1-src.tar
apache-hive-1.2.1-src.tar(http://apache.fayea.com/hive/hive-1.2.1/apache-hive-1.2.1-src.tar.gz)
解压,cd apache-hive-1.2.1-src/hwi
命令:jar cfM hive-hwi-1.2.1.war -C web .
复制到:hive-1.2.1/lib
hive-1.2.1/conf/hive-site.xml添加:
<property>
<name>hive.hwi.listen.host</name>
<value>0.0.0.0</value>
<description>This is the host address the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.listen.port</name>
<value>9999</value>
<description>This is the host port the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-1.2.1.war</value>
<description>This is the WAR file with the jsp content for Hive Web Interface</description>
</property>
hive-env.sh添加:
export HADOOP_HOME=/home/hadoop/app/hadoop
然后把tools.jar(jdk/lib),jasper*.jar,commons-el-1.0.jar放到hive下的lib下。
http://download.csdn.net/detail/zhangge360/9568397 //jasper*.jar下载包中没有jasper.jar,因为加上后报错,可自行下载
启动hadoop.开启服务hive --service hwi