HADOOP-11247. Fix a couple javac warnings in NFS. Contributed by Brandon Li.
This commit is contained in:
parent
6f5f604a79
commit
05b66ca074
@ -378,6 +378,8 @@ Release 2.7.0 - UNRELEASED
|
||||
HADOOP-11186. documentation should talk about
|
||||
hadoop.htrace.spanreceiver.classes, not hadoop.trace.spanreceiver.classes (cmccabe)
|
||||
|
||||
HADOOP-11247. Fix a couple javac warnings in NFS. (Brandon Li via wheat9)
|
||||
|
||||
Release 2.6.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -32,5 +32,5 @@ public class IdMappingConstant {
|
||||
|
||||
// Used for finding the configured static mapping file.
|
||||
public static final String STATIC_ID_MAPPING_FILE_KEY = "static.id.mapping.file";
|
||||
public static final String STATIC_ID_MAPPING_FILE_DEFAULT = "/etc/usergroupid.map";
|
||||
public static final String STATIC_ID_MAPPING_FILE_DEFAULT = "/etc/nfs.map";
|
||||
}
|
||||
|
@ -193,12 +193,4 @@ public static WriteStableHow fromValue(int id) {
|
||||
/** Expiration time for nfs exports cache entry */
|
||||
public static final String NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_KEY = "nfs.exports.cache.expirytime.millis";
|
||||
public static final long NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_DEFAULT = 15 * 60 * 1000; // 15 min
|
||||
|
||||
@Deprecated
|
||||
public final static String NFS_USERGROUP_UPDATE_MILLIS_KEY = "nfs.usergroup.update.millis";
|
||||
|
||||
// Used for finding the configured static mapping file.
|
||||
@Deprecated
|
||||
public static final String NFS_STATIC_MAPPING_FILE_KEY = "nfs.static.mapping.file";
|
||||
public static final String NFS_STATIC_MAPPING_FILE_DEFAULT = "/etc/nfs.map";
|
||||
}
|
||||
|
@ -43,9 +43,9 @@ private static void addDeprecatedKeys() {
|
||||
Nfs3Constant.NFS_EXPORTS_CACHE_EXPIRYTIME_MILLIS_KEY),
|
||||
new DeprecationDelta("hadoop.nfs.userupdate.milly",
|
||||
IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
|
||||
new DeprecationDelta(Nfs3Constant.NFS_USERGROUP_UPDATE_MILLIS_KEY,
|
||||
new DeprecationDelta("nfs.usergroup.update.millis",
|
||||
IdMappingConstant.USERGROUPID_UPDATE_MILLIS_KEY),
|
||||
new DeprecationDelta(Nfs3Constant.NFS_STATIC_MAPPING_FILE_KEY,
|
||||
new DeprecationDelta("nfs.static.mapping.file",
|
||||
IdMappingConstant.STATIC_ID_MAPPING_FILE_KEY),
|
||||
new DeprecationDelta("dfs.nfs3.enableDump",
|
||||
NfsConfigKeys.DFS_NFS_FILE_DUMP_KEY),
|
||||
|
@ -174,7 +174,7 @@ public RpcProgramNfs3(NfsConfiguration config, DatagramSocket registrationSocket
|
||||
this.config = config;
|
||||
config.set(FsPermission.UMASK_LABEL, "000");
|
||||
iug = new ShellBasedIdMapping(config,
|
||||
Nfs3Constant.NFS_STATIC_MAPPING_FILE_DEFAULT);
|
||||
IdMappingConstant.STATIC_ID_MAPPING_FILE_DEFAULT);
|
||||
|
||||
aixCompatMode = config.getBoolean(
|
||||
NfsConfigKeys.AIX_COMPAT_MODE_KEY,
|
||||
|
Loading…
Reference in New Issue
Block a user