[
https://issues.apache.org/jira/browse/HIVE-9148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251912#comment-14251912
]
Peter Slawski commented on HIVE-9148:
-------------------------------------
No, the description is correct as *hive.hwi.war.file* is assumed to be relative
to *$HIVE_HOME* in HWIServer.java. *$HWI_WAR_FILE* is being set wrongly in
[hwi.sh|https://github.com/apache/hive/blob/b8250ac2f30539f6b23ce80a20a9e338d3d31458/bin/ext/hwi.sh#L29].
So if you didn't overwrote *hive.hwi.war.file* in hive-site.xml, the path to
the HWI war file would be wrong.
>From
>[hwi/src/java/org/apache/hadoop/hive/hwi/HWIServer.java:77|https://github.com/apache/hive/blob/release-0.14.0/hwi/src/java/org/apache/hadoop/hive/hwi/HWIServer.java#L77]
{code:java}
String hwiWAR = conf.getVar(HiveConf.ConfVars.HIVEHWIWARFILE);
String hivehome = System.getenv().get("HIVE_HOME");
File hwiWARFile = new File(hivehome, hwiWAR);
{code}
> Fix default value for HWI_WAR_FILE
> ----------------------------------
>
> Key: HIVE-9148
> URL: https://issues.apache.org/jira/browse/HIVE-9148
> Project: Hive
> Issue Type: Bug
> Components: Web UI
> Affects Versions: 0.14.0, 0.13.1
> Reporter: Peter Slawski
> Priority: Minor
> Fix For: 0.15.0
>
> Attachments: HIVE-9148.1.patch
>
>
> The path to the hwi war file should be relative to hive home. However,
> HWI_WAR_FILE is set in hwi.sh to be an absolute path.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)