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> 
  • 相关阅读:
    ping命令的几个简单使用
    CentOS下编译安装hping3
    CentOS下安装gns3
    sendip简单使用
    Ubuntu/CentOS使用BIND配置DNS服务器
    远程重启linux主机的几种方法
    使用U盘安装win7系统,遇到“无法定位现有系统分区”问题
    导出csv文件
    Mvc 分页栏扩展方法
    初学HTML5系列三:事件
  • 原文地址:https://www.cnblogs.com/onetwo/p/4233822.html
Copyright © 2011-2022 走看看