启动Hive Web UI时遇到问题。虽然hive-hwi-0.11.0.war文件确实存在于/usr/local/hive-0.11.0/lib/下,但是当我尝试启动HWI时总会出现相同的错误消息:
...致命hwi.HWIServer:在/usr/local/hive-0.11.0/usr/local/hive-0.11.0/lib/hive-hwi-0.11.0.war <找不到HWI WAR文件/ p>
无论我如何设置hive.hwi.war.file的值,看起来$ .EmcE_HOME路径在搜索.war文件时重复了两次。
我尝试过的值:
设置1:$ {HIVE_HOME} /lib/hive-hwi-0.11.0.war
设置2:/usr/local/hive-0.11.0/lib/hive-hwi-0.11.0.war
设置3:lib / hive-hwi-0.11.0.war
顺便说一下,我在$ HIVE_HOME / conf / hive-site.xml中设置了所有配置单元配置。任何人都有解决此问题的方法吗?谢谢!
以下是我的hive-site.xml:
<configuration>
<property>
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://client2/metastore</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
<description>MySQL JDBC driver class</description>
</property>
<property>
<name>hive.metastore.warehouse.dir</name>
<value>/user/hive/warehouse</value>
<description>location of default database for the warehouse</description>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hive</value>
<description>user name for connecting to mysql server </description>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>hadoop</value>
</property>
<property>
<name>hive.metastore.schema.verification</name>
<value>false</value>
</property>
<property>
<name>hive.server2.servermode</name>
<value>thrift</value>
</property>
<property>
<name>datanucleus.autoCreateSchema</name>
<value>false</value>
</property>
<property>
<name>datanucleus.fixedDatastore</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master1</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://client2:9083</value>
</property>
<property>
<name>hive.hwi.listen.host</name>
<value>10.19.209.100</value>
<description>This is the host address the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.listen.port</name>
<value>9999</value>
<description>This is the port the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.war.file</name>
<value>/usr/local/hive-0.11.0/lib/hive-hwi-0.11.0.war</value>
<description>This is the WAR file with the jsp content for Hive Web Interface</description>
</property>
</configuration>
答案 0 :(得分:0)
您似乎正在设置$ HIVE_HOME,然后在hive-site.xml中传递完整路径,从而导致您在错误输出中看到错误的路径。
尝试更改hive-site.xml文件,只需传递lib位置以附加到已设置的$ HIVE_HOME路径变量,如下所示:
<property>
<name>hive.hwi.war.file</name>
<value>/lib/hive-hwi-0.11.0.war</value>
<description>This is the WAR file with the jsp content for Hive Web Interface</description>
</property>
然后重新启动Hive并再次尝试WebUI。
答案 1 :(得分:0)
只是要添加@ apesa的答案,可能需要添加另外两个属性以及@apesa提到的内容。
<property>
<name>hive.hwi.listen.host</name>
<value>0.0.0.0</value>
<description>This is the host address the Hive Web Interface will listen on</description>
</property>
<property>
<name>hive.hwi.listen.port</name>
<value>9999</value>
<description>This is the port the Hive Web Interface will listen on</description>
</property>
仅当事情使用默认值时,hive.hwi.listen.host 和 hive.hwi.listen.port 才是可选的。
希望这有助于...... !!!