You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2009/04/20 23:39:02 UTC

svn commit: r766888 - in /hadoop/hive/branches/branch-0.3: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java

Author: namit
Date: Mon Apr 20 21:39:02 2009
New Revision: 766888

URL: http://svn.apache.org/viewvc?rev=766888&view=rev
Log:
HIVE-435. Fix Null pointer exception if password is null.
(Prasad Chakka via namit)


Modified:
    hadoop/hive/branches/branch-0.3/CHANGES.txt
    hadoop/hive/branches/branch-0.3/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java

Modified: hadoop/hive/branches/branch-0.3/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.3/CHANGES.txt?rev=766888&r1=766887&r2=766888&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.3/CHANGES.txt (original)
+++ hadoop/hive/branches/branch-0.3/CHANGES.txt Mon Apr 20 21:39:02 2009
@@ -156,7 +156,10 @@
     query is a outer-most query.  (Namit Jain via zshao)
 
     HIVE-432. Fix "SORT BY" using only one reducer.
-    (Zheng Shao via njain)
+    (Zheng Shao via namit)
+
+    HIVE-435. Fix Null pointer exception if password is null.
+    (Prasad Chakka via namit)
 
 Release 0.2.0 - Unreleased
 

Modified: hadoop/hive/branches/branch-0.3/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.3/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java?rev=766888&r1=766887&r2=766888&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.3/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (original)
+++ hadoop/hive/branches/branch-0.3/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java Mon Apr 20 21:39:02 2009
@@ -387,7 +387,8 @@
 
       // remove the pwd from conf file so that job tracker doesn't show this logs
       String pwd = job.get(HiveConf.ConfVars.METASTOREPWD.varname);
-      job.set(HiveConf.ConfVars.METASTOREPWD.varname, "HIVE");
+      if (pwd != null)
+        job.set(HiveConf.ConfVars.METASTOREPWD.varname, "HIVE");
       JobClient jc = new JobClient(job);
 
       // make this client wait if job trcker is not behaving well.
@@ -395,7 +396,8 @@
 
       orig_rj = rj = jc.submitJob(job);
       // replace it back
-      job.set(HiveConf.ConfVars.METASTOREPWD.varname, pwd);
+      if (pwd != null)
+        job.set(HiveConf.ConfVars.METASTOREPWD.varname, pwd);
 
       // add to list of running jobs so in case of abnormal shutdown can kill
       // it.