HADOOP-12294. Remove the support of the deprecated dfs.umask. Contributed by Chang Li.
This commit is contained in:
parent
2326171ea8
commit
4492b9e730
|
@ -35,6 +35,9 @@ Trunk (Unreleased)
|
||||||
HADOOP-10787 Rename/remove non-HADOOP_*, etc from the shell scripts.
|
HADOOP-10787 Rename/remove non-HADOOP_*, etc from the shell scripts.
|
||||||
(aw via vvasudev)
|
(aw via vvasudev)
|
||||||
|
|
||||||
|
HADOOP-12294. Remove the support of the deprecated dfs.umask.
|
||||||
|
(Chang Li vha wheat9)
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
||||||
HADOOP-6590. Add a username check for hadoop sub-commands (John Smith via
|
HADOOP-6590. Add a username check for hadoop sub-commands (John Smith via
|
||||||
|
|
|
@ -258,22 +258,8 @@ public class FsPermission implements Writable {
|
||||||
String error = "Unable to parse configuration " + UMASK_LABEL
|
String error = "Unable to parse configuration " + UMASK_LABEL
|
||||||
+ " with value " + confUmask + " as " + type + " umask.";
|
+ " with value " + confUmask + " as " + type + " umask.";
|
||||||
LOG.warn(error);
|
LOG.warn(error);
|
||||||
|
|
||||||
// If oldUmask is not set, then throw the exception
|
throw new IllegalArgumentException(error);
|
||||||
if (oldUmask == Integer.MIN_VALUE) {
|
|
||||||
throw new IllegalArgumentException(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(oldUmask != Integer.MIN_VALUE) { // Property was set with old key
|
|
||||||
if (umask != oldUmask) {
|
|
||||||
LOG.warn(DEPRECATED_UMASK_LABEL
|
|
||||||
+ " configuration key is deprecated. " + "Convert to "
|
|
||||||
+ UMASK_LABEL + ", using octal or symbolic umask "
|
|
||||||
+ "specifications.");
|
|
||||||
// Old and new umask values do not match - Use old umask
|
|
||||||
umask = oldUmask;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue