当前位置:操作系统 > Unix/Linux >>

搭建Hive的图形界面

搭建Hive的图形界面
 
添加war包到hive的lib目录:
 
下载添加到/usr/lib/hive/lib/hive-hwi-0.9.0-cdh4.1.0.war
 
添加配置到hive-site.xml
 
<property>
 
  <name>hive.hwi.listen.host</name>
 
  <value>0.0.0.0</value>
 
  <description>This is the host address the Hive Web Inte易做图ce will listen on</description>
 
</property>
 
<property>
 
  <name>hive.hwi.listen.port</name>
 
  <value>9999</value>
 
  <description>This is the port the Hive Web Inte易做图ce will listen on</description>
 
</property>
 
<property>
 
  <name>hive.hwi.war.file</name>
 
  <value>/usr/lib/hive/lib/hive_hwi.war</value>
 
  <description>This is the WAR file with the jsp content for Hive Web Inte易做图ce</description>
 
</property>
 
设置ANT_LIB路径
            export ANT_LIB=/usr/lib/apache-ant-1.9.0/lib
 
(optional)cp  /usr/java/jdk1.6.0_35/lib/tools.jar /usr/lib/hive/lib/
 
            Caused by:
 
            Unable to find a javac compiler;
 
            com.sun.tools.javac.Main is not on the classpath.
 
            Perhaps JAVA_HOME does not point to the JDK.
 
            It is currently set to "/usr/java/jdk1.6.0_35/jre"
 
启动hwi
 
hive --service hwi > hwi.log
web GUI URL: http://****:9999/hwi/
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,