vi $HIVE_HOME/conf/hive-site.xml 配置如下
<property>
<name>hive.hwi.listen.host</name>
<value>192.168.0.118</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>
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-0.8.1.war</value>
<description>This is the WAR file with the jsp content for Hive Web Interface</description>
</property>
执行hadoop@ubuntu118:~$ hive --service hwi
出现以下类似信息,则表示启动hwi服务成功。 INFO hwi.HWIServer: HWI is starting up 。。。。 INFO mortbay.log: Started SocketConnector@192.168.0.118:9999
通过http://192.168.0.118:9999/hwi访问启动的web服务。