搭建Hive的图形界面

  • 添加war包到hive的lib目录:

    下载添加到/usr/lib/hive/lib/hive-hwi-0.9.0-cdh4.1.0.war

  • 添加配置到hive-site.xml

  • 设置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://192.168.81.176:9999/hwi/

你可能感兴趣的:(hadoop,hive)