hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1673614 - /hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java
Date Wed, 15 Apr 2015 02:01:17 GMT
Author: edwardyoon
Date: Wed Apr 15 02:01:16 2015
New Revision: 1673614

URL: http://svn.apache.org/r1673614
Log: (empty)

Modified:
    hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java

Modified: hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java?rev=1673614&r1=1673613&r2=1673614&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/bsp/BSPJobClient.java Wed Apr 15 02:01:16
2015
@@ -349,8 +349,8 @@ public class BSPJobClient extends Config
       // Create the splits for the job
       LOG.debug("Creating splits at " + fs.makeQualified(submitSplitFile));
 
-      InputSplit[] splits = job.getInputFormat().getSplits(job, configured);
-
+      InputSplit[] splits = job.getInputFormat().getSplits(job, (maxTasks > configured)
? configured : maxTasks);
+      
       if (maxTasks < splits.length) {
         throw new IOException(
             "Job failed! The number of splits has exceeded the number of max tasks. The number
of splits: "



Mime
View raw message