Hive1.2.1--hwi配置
Ø 第一步:下載Hive1.2.1的源碼:http://mirror.bit.edu.cn/apache/hive/這是下載地址。解壓以上的文件。
Ø 第二步:進入目錄hwi/web中,將目錄中的內容全部壓縮成壓縮包.zip,將壓縮包重命名成hive-hwi-1.2.1.war。放入你的hive/lib/目錄下。
Ø 第三步:修改hive-site.xml文件,添加如下內容:
<property>
<name>hive.hwi.listen.host</name>
<value>0.0.0.0</value>
<description>This isthe host address the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.listen.port</name>
<value>9999</value>
<description>This isthe port the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.war.file</name>
<value>lib/hive-hwi-1.2.1.war</value>
<description>Thissets the path to the HWI war file, relative to ${HIVE_HOME}.</description>
</property>
Ø 第四步:添加下面的jar到hive的主目錄/lib下。
org.apache.jasper.jar:http://cn.jarfire.org/org.apache.jasper.html
commons-el.jar:http://commons.apache.org/proper/commons-el/download_el.cgi
jdk目錄/lib/tools.jar
Ø 第五步:啓動hwi
hive --service hwi &