Description
In UserGroupInformation::doAs(), it prints out a log at ERROR level whenever it catches an exception.
However, it prints benign warnings in the following paradigm:
try { ugi.doAs(new PrivilegedExceptionAction<FileStatus>() { @Override public FileStatus run() throws Exception { return fs.getFileStatus(nonExist); } }); } catch (FileNotFoundException e) { }
For example, FileSystem#exists() follows this paradigm. Distcp uses this paradigm too. The exception is expected therefore there should be no ERROR logs printed in the namenode logs.
Currently, the user quickly finds out that the namenode log is quickly filled by benign ERROR logs when he or she runs distcp in secure set up. This behavior confuses the operators.
This jira proposes to move the log to DEBUG level.
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-3594 ListPathsServlet should not log a warning for paths that do not exist
- Resolved
- is duplicated by
-
HADOOP-10274 Lower the logging level from ERROR to WARN for UGI.doAs method
- Closed
- relates to
-
HADOOP-10274 Lower the logging level from ERROR to WARN for UGI.doAs method
- Closed