From 0942954e8ab6bef636c2648d0d5a0227a50f799c Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Tue, 17 May 2016 15:06:25 -0500 Subject: [PATCH] HDFS-10417. Improve error message from checkBlockLocalPathAccess. Contributed by Tianyin Xu. --- .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 288fc3eb9f..410472e69c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -1717,7 +1717,8 @@ private void checkBlockLocalPathAccess() throws IOException { throw new AccessControlException( "Can't continue with getBlockLocalPathInfo() " + "authorization. The user " + currentUser - + " is not allowed to call getBlockLocalPathInfo"); + + " is not configured in " + + DFSConfigKeys.DFS_BLOCK_LOCAL_PATH_ACCESS_USER_KEY); } }