Hive-1.2.1 HWI 图形化界面问题

1、下载apache-hive-1.2.1-src.tar.gz

2、解压apache-hive-1.2.1-src.tar.gz(tar-zxvfapache-hive-1.2.1-src.tar.gz)

3、进入cdapache-hive-1.2.1-src/hwi

4、把web打包(jarcvfM0hive-hwi-1.2.1.war-Cweb/.)

5、把war包cp到hive的lib目录下

6、修改hive-site.xml配置

<property>

<name>hive.hwi.listen.host</name>

<value>pc.study.crxy.cn</value>

<description>ThisisthehostaddresstheHiveWebInterfacewilllistenon</description>

</property>

<property>

<name>hive.hwi.listen.port</name>

<value>9999</value>.

<description>ThisistheporttheHiveWebInterfacewilllistenon</description>

</property>

<property>

<name>hive.hwi.war.file</name>

<value>lib/hive-hwi-1.2.1.war</value>

<description>ThissetsthepathtotheHWIwarfile,relativeto${HIVE_HOME}.</description>

</property>

7、启动hive--servicehwi&

其中遇到的问题:

启动时报错:ERRORcompiler.Compiler:Javacexception

Unabletofindajavaccompiler;com.sun.tools.javac.Mainisnotontheclasspath.

PerhapsJAVA_HOMEdoesnotpointtotheJDK.Itiscurrentlysetto"/usr/local/java/jre"

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

然后kill掉启动进程,继续hive--servicehwi&

问题就解决了

相关推荐