diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java index bc73f1b753..276c07e357 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java @@ -80,9 +80,9 @@ public class ViewFileSystem extends FileSystem { static AccessControlException readOnlyMountTable(final String operation, final String p) { - return new AccessControlException( - "InternalDir of ViewFileSystem is readonly; operation=" + operation + - "Path=" + p); + return new AccessControlException( + "InternalDir of ViewFileSystem is readonly, operation " + operation + + " not permitted on path " + p + "."); } static AccessControlException readOnlyMountTable(final String operation, final Path p) { diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java index 177047601e..2c8c1a538e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java @@ -162,9 +162,9 @@ public class ViewFs extends AbstractFileSystem { static AccessControlException readOnlyMountTable(final String operation, final String p) { - return new AccessControlException( - "InternalDir of ViewFileSystem is readonly; operation=" + operation + - "Path=" + p); + return new AccessControlException( + "InternalDir of ViewFileSystem is readonly, operation " + operation + + " not permitted on path " + p + "."); } static AccessControlException readOnlyMountTable(final String operation, final Path p) {