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
This commit is contained in:
Vinod Kumar Vavilapalli 2013-05-13 20:38:18 +00:00
parent 9c512f83d8
commit 3691cf65af
1 changed files with 3 additions and 3 deletions

View File

@ -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());