1. Download the source code on the hive's official website and upload it to the server
2. Go to the directory to unzip
TAR-ZXVF apache-hive-0.14.0-src.tar.gz
3. Go to the web directory
CD APACHE-HIVE-0.14.0-SRC
CD Hwi/web
4. Make the Web source into a zip package
Zip hive-hwi-0.14.0.zip./*//packaged into a. zip file.
5. Change the zip suffix to war
Hive-hwi-0.14.0.war
6. Copy the war package to the Lib directory under hive
CP Hive-hwi-0.14.0.war $HIVE _home/lib
7. Look at hive configuration file Hive-site.xml, if there are three properties, if not, add it.
<property>
< name>hive.hwi.listen.host</name>
< value>0.0.0.0</value>
</property>
< property>
< name>hive.hwi.listen.port</name>
< value>9999</value>
</property>
< property>
< name>hive.hwi.war.file</name>
< value>lib/hive-hwi-0.14.0.war</value>
</property>
8. Save, exit.
9. Start Hwi:
Hive--service Hwi
If you have the following error:
Problem accessing/hwi/. Reason:
Unable to find a javac compiler;
Com.sun.tools.javac.Main isn't on the classpath.
Perhaps Java_home does not point to the JDK.
It is currently set to "/usr/java/jdk1.7.0_55/jre"
Cp/usr/java/jdk1.7.0_55/lib/tools.jar $HIVE _home/lib/
Hive--service hwi reboot.
This article is from the "Cheng && program Garden" blog, please make sure to keep this source http://alentain.blog.51cto.com/3572099/1612044
Build hive's graphical interface hive-0.14.0 version