hive hwi使用

hwi(hive web interface)是hive命令行接口的补充。

使用方法:

1.配置:

在配置文件hive-site.xml 中,默认有hwi的配置

<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>

2.后台运行hwi:

$ nohup ./hive --service hwi &

测试:

http://hiveIP地址:9999/hwi/

---------------------------------------------------------

如果出现hwi无法启动:

[root@h1 bin]# ./hive --service hwi &

[1] 43247

[root@h1 bin]# 14/01/23 23:18:44 INFO hwi.HWIServer: HWI is starting up

14/01/23 23:18:45 FATAL hwi.HWIServer: HWI WAR file not found at /usr/hive-0.12.0/usr/hive-0.12.0/lib/hive-hwi-0.12.0.war

我的目录在这

[root@h1 bin]# ls /usr/hive-0.12.0/lib/hive-h

hive-hbase-handler-0.12.0.jar  hive-hwi-0.12.0.war

hive-hwi-0.12.0.jar

查看hive-env.sh,看是否设置正确。不正确则修改为正确的路径,则可以正常启动。

原文地址:https://www.cnblogs.com/solohac/p/4154158.html