hive之hwi

心已赠人 2022-06-09 13:21 291阅读 0赞

hwi:hive web interface
启动方式:

  1. hive --service hwi

此处会缺少war包,所以需要从源码中去打包。
思路讲解:
下载源码
版本是hive2.1.1
下载地址:选择你合适的版本
解压进入hwi文件夹
编译hwi

  1. jar cvfM0 hive-2.1.1.war -C web/ .

复制到hive的lib下
再对conf下的hive-site.xml文件配置,添加hwi属性,指定war文件

  1. <property>
  2. <name>hive.hwi.listen.host</name>
  3. <value>0.0.0.0</value>
  4. <description>?????</description>
  5. </property>
  6. <property>
  7. <name>hive.hwi.listen.port</name>
  8. <value>9999</value>
  9. <description>??????</description>
  10. </property>
  11. <property>
  12. <name>hive.hwi.war.file</name>
  13. <value>lib/hive-hwi-2.1.1.war</value>
  14. <description>war</description>
  15. </property>

再把jdk tool下的文件拷贝到hive的lib下
启动hwi

  1. 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包,备份了一下

  1. mv log4j-slf4j-impl-2.4.1.jar log4j-slf4j-impl-2.4.1.jar.bk
  2. mv ant-1.9.1.jar ant-1.9.1.jar.bk

发表评论

表情:
评论列表 (有 0 条评论,291人围观)

还没有评论,来说两句吧...

相关阅读

    相关 hivehwi

    hwi:hive web interface 启动方式: hive --service hwi 此处会缺少war包,所以需要从源码中去打包。 思路讲解: