Explorar o código

commit 15f7ef8bef6f97799cf0e2252ce54c56222758b3
Author: Iyappan Srinivasan <iyappans@yahoo-inc.com>
Date: Fri Aug 6 14:17:36 2010 +0000

MAPREDUCE-1890 https://issues.apache.org/jira/secure/attachment/12451428/1890-ydist-security-patch.txt


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077646 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley %!s(int64=14) %!d(string=hai) anos
pai
achega
58f337dd63

+ 7 - 7
src/test/system/java/org/apache/hadoop/mapred/TestNodeDecommissioning.java

@@ -78,8 +78,8 @@ public class TestNodeDecommissioning {
 
   @AfterClass
   public static void tearDown() throws Exception {
-    cluster.tearDown();
     cluster.restart();
+    cluster.tearDown();
   }
 
   /**
@@ -159,8 +159,8 @@ public class TestNodeDecommissioning {
         ";bin/hadoop mradmin -refreshNodes;"; 
     LOG.info("refreshNodeCommand is : " + refreshNodeCommand);
     try {
-    RemoteExecution.executeCommand(testRunningHostName, userName, 
-        refreshNodeCommand);
+      RemoteExecution.executeCommand(testRunningHostName, userName, 
+          refreshNodeCommand);
     } catch (Exception e) { e.printStackTrace();}
 
     //Checked whether the node is really decommissioned.
@@ -168,7 +168,7 @@ public class TestNodeDecommissioning {
     nodeDecommissionedOrNot = remoteJTClientProxy.
         isNodeDecommissioned(ttClientHostName); 
 
-     //The TTClient host is  removed from the exclude path
+    //The TTClient host is removed from the exclude path
     command = "rm " + excludeHostPath;
 
     LOG.info("command is : " + command);
@@ -189,11 +189,11 @@ public class TestNodeDecommissioning {
     //Starting that node
     String ttClientStart = "export HADOOP_CONF_DIR=" + hadoopConfDir +
         "; export HADOOP_HOME=" + hadoopHomeDir + ";cd " + hadoopHomeDir +
-        ";bin/hadoop-daemon.sh start tasktracker;";
+        ";kinit -k -t " + keytabForHadoopqaUser + 
+        ";bin/hadoop-daemons.sh start tasktracker;";
     LOG.info("ttClientStart is : " + ttClientStart);
-    RemoteExecution.executeCommand(ttClientHostName, userName,
+    RemoteExecution.executeCommand(jtClientHostName, userName,
         ttClientStart);
-
   }
 }