pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jul...@apache.org
Subject svn commit: r1146491 - in /pig/trunk: CHANGES.txt src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
Date Wed, 13 Jul 2011 21:37:24 GMT
Author: julien
Date: Wed Jul 13 21:37:23 2011
New Revision: 1146491

URL: http://svn.apache.org/viewvc?rev=1146491&view=rev
Log:
PIG-2128: Generating the jar file takes a lot of time and is unnecessary when running Pig
local mode

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1146491&r1=1146490&r2=1146491&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Wed Jul 13 21:37:23 2011
@@ -23,6 +23,7 @@ Trunk (unreleased changes)
 INCOMPATIBLE CHANGES
 
 IMPROVEMENTS
+PIG-2128: Generating the jar file takes a lot of time and is unnecessary when running Pig
local mode (julien)
 
 PIG-2121: e2e test harness should use ant instead of make (gates)
 

Modified: pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java?rev=1146491&r1=1146490&r2=1146491&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
(original)
+++ pig/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/JobControlCompiler.java
Wed Jul 13 21:37:23 2011
@@ -401,15 +401,16 @@ public class JobControlCompiler{
                 }
             }
 
-            if (!pigContext.inIllustrator) 
+            if (!pigContext.inIllustrator && pigContext.getExecType() != ExecType.LOCAL)

             {
                 //Create the jar of all functions and classes required
                 File submitJarFile = File.createTempFile("Job", ".jar");
+                log.info("creating jar file "+submitJarFile.getName());
                 // ensure the job jar is deleted on exit
                 submitJarFile.deleteOnExit();
                 FileOutputStream fos = new FileOutputStream(submitJarFile);
                 JarManager.createJar(fos, mro.UDFs, pigContext);
-            
+                log.info("jar file "+submitJarFile.getName()+" created");
                 //Start setting the JobConf properties
                 conf.set("mapred.jar", submitJarFile.getPath());
             }



Mime
View raw message