hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject [31/50] [abbrv] hadoop git commit: YARN-5777. TestLogsCLI#testFetchApplictionLogsAsAnotherUser fails. Contributed by Akira Ajisaka.
Date Wed, 26 Oct 2016 18:30:57 GMT
YARN-5777. TestLogsCLI#testFetchApplictionLogsAsAnotherUser fails. Contributed by Akira Ajisaka.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c88c1dc5
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c88c1dc5
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c88c1dc5

Branch: refs/heads/YARN-4752
Commit: c88c1dc50c0ec4521bc93f39726248026e68063a
Parents: 9a8a386
Author: Xiao Chen <xiao@apache.org>
Authored: Tue Oct 25 12:14:27 2016 -0700
Committer: Xiao Chen <xiao@apache.org>
Committed: Tue Oct 25 12:15:09 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c88c1dc5/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java
index 3ea3fa6..eb43568 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/LogCLIHelpers.java
@@ -595,6 +595,8 @@ public class LogCLIHelpers implements Configurable {
     } catch (AccessControlException | AccessDeniedException ace) {
       logDirNoAccessPermission(remoteAppLogDir.toString(), appOwner,
         ace.getMessage());
+    } catch (IOException ioe) {
+      logDirIOError(remoteAppLogDir.toString(), ioe.getMessage());
     }
     return nodeFiles;
   }
@@ -644,6 +646,11 @@ public class LogCLIHelpers implements Configurable {
         + ". Error message found: " + errorMessage);
   }
 
+  private static void logDirIOError(String remoteAppLogDir, String errMsg) {
+    System.err.println("Cannot access to " + remoteAppLogDir +
+        ". Error message found: " + errMsg);
+  }
+
   @Private
   public PrintStream createPrintStream(String localDir, String nodeId,
       String containerId) throws IOException {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message