hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077626 - /hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java
Date Fri, 04 Mar 2011 04:37:53 GMT
Author: omalley
Date: Fri Mar  4 04:37:52 2011
New Revision: 1077626

URL: http://svn.apache.org/viewvc?rev=1077626&view=rev
Log:
commit df72fcb15f45e40aa0fb4f87f4a6a1a21b90f5ba
Author: Balaji Rajagopalan <balajirg@yahoo-inc.com>
Date:   Mon Aug 2 13:14:54 2010 -0700

    MAPREDUCE-1971 from https://issues.apache.org/jira/secure/attachment/12451019/concurrent_y20_fix.patch

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java?rev=1077626&r1=1077625&r2=1077626&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/system/java/org/apache/hadoop/mapred/TestCMExceptionDuringRunJob.java
Fri Mar  4 04:37:52 2011
@@ -13,6 +13,8 @@ import org.junit.AfterClass;
 import org.junit.Test;
 import org.apache.commons.logging.LogFactory;
 import org.apache.commons.logging.Log;
+import java.util.Hashtable;
+import java.lang.Integer;
 
 public class TestCMExceptionDuringRunJob {
   
@@ -41,13 +43,18 @@ public class TestCMExceptionDuringRunJob
     remoteJTClient = cluster.getJTClient().getProxy();
     
     conf = remoteJTClient.getDaemonConf();
+    conf.setBoolean("mapreduce.job.complete.cancel.delegation.tokens", false);
     //set interval to 30 secs, check to 10 secs, check determines the frequency
     //of the jobtracker thread that will check for retired jobs, and interval
     //will determine how long it will take before a job retires.
-    conf.setInt("mapred.jobtracker.retirejob.interval",30*1000);
-    conf.setInt("mapred.jobtracker.retirejob.check",10*1000);
-    cluster.restartDaemonWithNewConfig(cluster.getJTClient(), "mapred-site.xml",
-        conf, Role.JT);
+    //conf.setInt("mapred.jobtracker.retirejob.interval",30*1000);
+    //conf.setInt("mapred.jobtracker.retirejob.check",10*1000);
+    //cluster.restartDaemonWithNewConfig(cluster.getJTClient(), "mapred-site.xml",
+    //    conf, Role.JT);
+    Hashtable<String,Long> props = new Hashtable<String,Long>();
+    props.put("mapred.jobtracker.retirejob.interval",30000L);
+    props.put("mapred.jobtracker.retirejob.check",10000L);
+    cluster.restartClusterWithNewConfig(props,"mapred-site.xml");
     JobID jobid1 = runSleepJob(true);
     JobID jobid2 = runSleepJob(true);
     JobID jobid3 = runSleepJob(false);
@@ -60,7 +67,8 @@ public class TestCMExceptionDuringRunJob
     remoteJTClient.getJobSummaryInfo(jobid3);
     cluster.signalAllTasks(jobid3);
     cluster.getJTClient().isJobStopped(jobid3);
-    cluster.restart(cluster.getJTClient(), Role.JT);
+    //cluster.restart(cluster.getJTClient(), Role.JT);
+    cluster.restart();
   }
   
   



Mime
View raw message