zoukankan      html  css  js  c++  java
  • 搭建hive1.2.1图形界面

    下载:apache-hive-1.2.1-src.tar
    apache-hive-1.2.1-src.tar
    解压,cd apache-hive-1.2.1-src/hwi
    命令:jar cfM hive-hwi-1.2.0.war -C web .
    复制:hive-1.2.1/lib

    hive-1.2.1/conf/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 host port the Hive Web Interface will listen on</description>
        </property>
        <property>
            <name>hive.hwi.war.file</name>
            <value>lib/hive-hwi-1.2.1.war</value>
            <description>This is the WAR file with the jsp content for Hive Web Interface</description>
        </property>

    开启服务:hive –service hwi 2> /tmp/hwi2.log &

    错误:

    ERROR compiler.Compiler: Javac exception 
    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/local/java/jre"

    原因:jetty编译jsp类时,ant没有识别到正确的jdk路径。

    解决:

    ln -s $JAVA_HOME/lib/tools.jar $HIVE_HOME/lib/

    访问:http://master:9999/hwi/

  • 相关阅读:
    leetcode144 longest-palindromic-substring
    数据结构之二叉树
    数据结构之堆
    数据结构之图
    数据结构之排序
    数据结构之动态规划
    14 RPC
    数据结构之字符串
    数据结构之散列表
    16 中间人攻击
  • 原文地址:https://www.cnblogs.com/ggzone/p/10121233.html
Copyright © 2011-2022 走看看