hive(0.12.0)配置并启动hwi

来源:互联网 发布:现在做网络销售怎么样 编辑:程序博客网 时间:2024/05/20 21:58

1、hive-site.xml配置

 

<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> 
<property> 
<name>hive.hwi.listen.host</name> 
<value>0.0.0.0</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>

2、添加jar 

将以下jar包添加到hive的lib下面

 

jasper-compiler-5.5.23.jar 

jasper-runtime-5.5.23.jar 

ant.jar 

ant-launcher-1.8.2.jar 

tools.jar

这些jar文件都可在该网站下载:http://www.java2s.com/Code/Jar/CatalogJar.htm


3、启动hwi服务

 

hive --service hwi


4、访问界面

 http://localhost:9999/hwi


0 0
原创粉丝点击