瀏覽代碼

MAPREDUCE-5208. Bug-fix on branch-2 - tests weren't compiling.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1482091 13f79535-47bb-0310-9956-ffa450edef68
Vinod Kumar Vavilapalli 12 年之前
父節點
當前提交
3691cf65af

+ 3 - 3
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/test/java/org/apache/hadoop/mapred/TestShuffleHandler.java

@@ -338,7 +338,7 @@ public class TestShuffleHandler {
       }
       }
       // Retrieve file owner name
       // Retrieve file owner name
       FileInputStream is = new FileInputStream(fileMap.get(0));
       FileInputStream is = new FileInputStream(fileMap.get(0));
-      String owner = NativeIO.POSIX.getFstat(is.getFD()).getOwner();
+      String owner = NativeIO.getFstat(is.getFD()).getOwner();
       is.close();
       is.close();
 
 
       String message =
       String message =
@@ -355,9 +355,9 @@ public class TestShuffleHandler {
       List<File> fileMap) throws IOException {
       List<File> fileMap) throws IOException {
     String attemptDir =
     String attemptDir =
         StringUtils.join(Path.SEPARATOR,
         StringUtils.join(Path.SEPARATOR,
-            new String[] { logDir.getAbsolutePath(),
+            Arrays.asList(new String[] { logDir.getAbsolutePath(),
                 ContainerLocalizer.USERCACHE, user,
                 ContainerLocalizer.USERCACHE, user,
-                ContainerLocalizer.APPCACHE, appId, "output", appAttemptId });
+                ContainerLocalizer.APPCACHE, appId, "output", appAttemptId }));
     File appAttemptDir = new File(attemptDir);
     File appAttemptDir = new File(attemptDir);
     appAttemptDir.mkdirs();
     appAttemptDir.mkdirs();
     System.out.println(appAttemptDir.getAbsolutePath());
     System.out.println(appAttemptDir.getAbsolutePath());