hwi:hive web interface
启动方式:
hive --service hwi
此处会缺少war包,所以需要从源码中去打包。
思路讲解:
下载源码
版本是hive2.1.1
下载地址:选择你合适的版本
解压进入hwi文件夹
编译hwi
jar cvfM0 hive-2.1.1.war -C web/ .
复制到hive的lib下
再对conf下的hive-site.xml文件配置,添加hwi属性,指定war文件
<property>
<name>hive.hwi.listen.host</name>
<value>0.0.0.0</value>
<description>?????</description>
</property>
<property>
<name>hive.hwi.listen.port</name>
<value>9999</value>
<description>??????</description>
</property>
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-2.1.1.war</value>
<description>war</description>
</property>
再把jdk tool下的文件拷贝到hive的lib下
启动hwi
hive --service hwi
你会发现可能存在一些包冲突
The following error occurred while executing this line: jar:file:/home/hadoop/apache-hive-2.1.1-bin/lib/ant-1.9.1.jar!/org/apache/tools/ant/antlib.xml:37: Could not create task or type of type: componentdef.
我把hive下的相关jar包,备份了一下
mv log4j-slf4j-impl-2.4.1.jar log4j-slf4j-impl-2.4.1.jar.bk
mv ant-1.9.1.jar ant-1.9.1.jar.bk