pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject svn commit: r1574991 - /pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java
Date Thu, 06 Mar 2014 18:45:09 GMT
Author: cheolsoo
Date: Thu Mar  6 18:45:08 2014
New Revision: 1574991

URL: http://svn.apache.org/r1574991
Log:
PIG-3788: NPE when POStream is not in the leaf vertex (daijy)

Modified:
    pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java

Modified: pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java
URL: http://svn.apache.org/viewvc/pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java?rev=1574991&r1=1574990&r2=1574991&view=diff
==============================================================================
--- pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java
(original)
+++ pig/branches/tez/src/org/apache/pig/backend/hadoop/streaming/HadoopExecutableManager.java
Thu Mar  6 18:45:08 2014
@@ -130,6 +130,9 @@ public class HadoopExecutableManager ext
             super.close();
 
             // Copy the secondary outputs of the task to HDFS
+            if (this.scriptOutputDir==null) {
+                return;
+            }
             Path scriptOutputDir = new Path(this.scriptOutputDir);
             FileSystem fs = scriptOutputDir.getFileSystem(job);
             List<HandleSpec> outputSpecs = command.getHandleSpecs(Handle.OUTPUT);



Mime
View raw message