搭建Hive的图形界面

来源:互联网 发布:淘宝网学习视频 编辑:程序博客网 时间:2024/05/17 23:09
  • 添加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 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>

    <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 Interface</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/
原创粉丝点击