diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 74d0507aad5..c1526be418f 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -31,6 +31,8 @@ Release 2.0.5-beta - UNRELEASED HADOOP-9318. When exiting on a signal, print the signal name first. (Colin Patrick McCabe via atm) + HADOOP-9358. "Auth failed" log should include exception string (todd) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java index 8261a438e5d..ddaad723a8b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java @@ -1186,7 +1186,8 @@ public abstract class Server { rpcMetrics.incrAuthenticationFailures(); String clientIP = this.toString(); // attempting user could be null - AUDITLOG.warn(AUTH_FAILED_FOR + clientIP + ":" + attemptingUser); + AUDITLOG.warn(AUTH_FAILED_FOR + clientIP + ":" + attemptingUser + + " (" + e.getLocalizedMessage() + ")"); throw e; } if (saslServer.isComplete() && replyToken == null) {