[jira] [Updated] (HIVE-10267) HIVE-9664 makes hive depend on ivysettings.xml : trivial breakage fix

2015-04-08 Thread Sushanth Sowmyan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sushanth Sowmyan updated HIVE-10267:

Summary: HIVE-9664 makes hive depend on ivysettings.xml : trivial breakage 
fix  (was: HIVE-9664 makes hive depend on ivysettings.xml)

 HIVE-9664 makes hive depend on ivysettings.xml : trivial breakage fix
 -

 Key: HIVE-10267
 URL: https://issues.apache.org/jira/browse/HIVE-10267
 Project: Hive
  Issue Type: Bug
Affects Versions: 1.2.0
Reporter: Sushanth Sowmyan
Assignee: Anant Nag
  Labels: 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(DependencyResolver.java:61)
 at 
 org.apache.hadoop.hive.ql.session.SessionState.init(SessionState.java:343)
 at 
 org.apache.hadoop.hive.ql.session.SessionState.init(SessionState.java:334)
 at org.apache.hadoop.hive.cli.CliSessionState.init(CliSessionState.java:60)
 {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
(v6.3.4#6332)


[jira] [Updated] (HIVE-10267) HIVE-9664 makes hive depend on ivysettings.xml : trivial breakage fix

2015-04-08 Thread Sushanth Sowmyan (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sushanth Sowmyan updated HIVE-10267:

Attachment: HIVE-10267.patch

Trivial patch attached.

 HIVE-9664 makes hive depend on ivysettings.xml : trivial breakage fix
 -

 Key: HIVE-10267
 URL: https://issues.apache.org/jira/browse/HIVE-10267
 Project: Hive
  Issue Type: Bug
Affects Versions: 1.2.0
Reporter: Sushanth Sowmyan
Assignee: Anant Nag
  Labels: patch
 Attachments: HIVE-10267.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(DependencyResolver.java:61)
 at 
 org.apache.hadoop.hive.ql.session.SessionState.init(SessionState.java:343)
 at 
 org.apache.hadoop.hive.ql.session.SessionState.init(SessionState.java:334)
 at org.apache.hadoop.hive.cli.CliSessionState.init(CliSessionState.java:60)
 {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
(v6.3.4#6332)