hive中配置hwi

时间:2022-05-06
本文章向大家介绍hive中配置hwi,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

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服务。