1、hive-site.xml配置
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-0.12.
0
.war</value>
<description>This sets the path to the HWI war file, relative to ${HIVE_HOME}.
</description>
</property>
<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 port the Hive Web Interface will listen on</description>
</property>
2、添加jar
将以下jar包添加到hive的lib下面
jasper-compiler-5.5.23.jar
jasper-runtime-5.5.23.jar
ant.jar
ant-launcher-1.8.2.jar
tools.jar
这些jar文件都可在该网站下载:http://www.java2s.com/Code/Jar/CatalogJar.htm
3、启动hwi服务
hive --service hwi
4、访问界面