zoukankan      html  css  js  c++  java
  • hive0.13.1配置hwi

    寻找hive-hwi-*.war文件
    不清楚什么原因在hive0.13.1版本中的lib文件夹下没有hive-hwi-0.13.0.war,也就是没有*.war的文件。

    所以用hive 0.12.0版本中的hive-hwi-0.12.0.war来代替,
    将这个文件复制到hive主目录的lib下,并改为名hive-hwi-0.13.0.war

    下载并解压安装ant
    下载apache-ant-1.9.4-bin.tar.gz解压后
    并配置用户环境变量
    export ANT_HOME=/home/hadoop/ant
    export ANT_LIB=$ANT_HOME/lib 
    export PATH=$ANT_HOME/bin:$PATH


    复制tools.jarhive目录下的lib文件夹中
    jdk中的lib文件夹下
    [hadoop@cloud003 /usr/java/jdk1.7.0_60/lib]
    $ cp tools.jar /home/hadoop/hive/lib/
     
    如果没有做这一步会导致 打开网页时出现如下
    Problem accessing /hwi/. Reason: 
        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.7.0_60/jre"
    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.7.0_60/jre"

    配置hive-site.xml
     
    中添加 
    <property>  
         <name>hive.hwi.war.file</name>  
         <value>/lib/hive-hwi-0.13.0.war</value>  
        <description>This is theWAR file with the jsp content for Hive Web Interface</description>
    </property> 

    StartUp

    bin/hive --service hwi 

    6. 登录 查看web
    <ignore_js_op> 
    <ignore_js_op> 
  • 相关阅读:
    SPOJ NSUBSTR
    一点对后缀自动机的理解 及模板
    HDU 1086 You can Solve a Geometry Problem too
    HDU2036 改革春风吹满地
    POJ 2318 TOYS
    [HNOI2008]玩具装箱TOY
    HDU 3507 Print Article
    洛谷 P1231 教辅的组成(网络最大流+拆点加源加汇)
    P3984 高兴的津津
    P2756 飞行员配对方案问题(网络流24题之一)
  • 原文地址:https://www.cnblogs.com/onetwo/p/4233822.html
Copyright © 2011-2022 走看看