hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <>
Subject [jira] [Commented] (HIVE-10251) HIVE-9664 makes hive depend on ivysettings.xml
Date Thu, 09 Apr 2015 17:50:13 GMT


Thejas M Nair commented on HIVE-10251:

(Forgive me if this idea idea is stupid, because of my limited knowledge of ivy). Is it possible
do do something like hadoop's *defualt.xml vs *site.xml ? Ie, package something like ivysettings-hivedefault.xml
as the default file in jar and then use that only if there is no ivysettings.xml in path ?
(or iveysettings-hivesite.xml).
Would that address the concerns [~sushanth] ?

> HIVE-9664 makes hive depend on ivysettings.xml
> ----------------------------------------------
>                 Key: HIVE-10251
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Sushanth Sowmyan
>            Assignee: Anant Nag
>              Labels: patch
>         Attachments: HIVE-10251.1.patch, HIVE-10251.2.patch, HIVE-10251.simple.patch
> HIVE-9664 makes hive depend on the existence of ivysettings.xml, and if it is not present,
it makes hive NPE when instantiating a CLISessionState.
> {noformat}
> java.lang.NullPointerException
> at org.apache.hadoop.hive.ql.session.DependencyResolver.<init>(
> at org.apache.hadoop.hive.ql.session.SessionState.<init>(
> at org.apache.hadoop.hive.ql.session.SessionState.<init>(
> at org.apache.hadoop.hive.cli.CliSessionState.<init>(
> {noformat}
> This happens because of the following bit:
> {noformat}
>     // If HIVE_HOME is not defined or file is not found in HIVE_HOME/conf then load default
ivysettings.xml from class loader
>     if (ivysettingsPath == null || !(new File(ivysettingsPath).exists())) {
>       ivysettingsPath = ClassLoader.getSystemResource("ivysettings.xml").getFile();
>       _console.printInfo("ivysettings.xml file not found in HIVE_HOME or HIVE_CONF_DIR,"
+ ivysettingsPath + " will be used");
>     }
> {noformat}
> This makes it so that an attempt to instantiate CliSessionState without an ivysettings.xml
file will cause hive to fail with an NPE. Hive should not have a hard dependency on a ivysettings,xml
being present, and this feature should gracefully fail in that case instead.

This message was sent by Atlassian JIRA

View raw message