Revert "HADOOP-12077. Provide a multi-URI replication Inode for ViewFs. Contributed by Gera Shegalov"
This reverts commit e6b7112c8837d918614fe3571d1fe077cc061aa1.
This commit is contained in:
parent
e6b7112c88
commit
cf12c1349d
@ -68,32 +68,6 @@ public static void addLink(final Configuration conf, final String src,
|
|||||||
src, target);
|
src, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param conf
|
|
||||||
* @param mountTableName
|
|
||||||
* @param src
|
|
||||||
* @param settings
|
|
||||||
* @param targets
|
|
||||||
*/
|
|
||||||
public static void addLinkNfly(Configuration conf, String mountTableName,
|
|
||||||
String src, String settings, final URI ... targets) {
|
|
||||||
|
|
||||||
settings = settings == null
|
|
||||||
? "minReplication=2,repairOnRead=true"
|
|
||||||
: settings;
|
|
||||||
|
|
||||||
conf.set(getConfigViewFsPrefix(mountTableName) + "." +
|
|
||||||
Constants.CONFIG_VIEWFS_LINK_NFLY + "." + settings + "." + src,
|
|
||||||
StringUtils.uriToString(targets));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addLinkNfly(final Configuration conf, final String src,
|
|
||||||
final URI ... targets) {
|
|
||||||
addLinkNfly(conf, Constants.CONFIG_VIEWFS_DEFAULT_MOUNT_TABLE, src, null,
|
|
||||||
targets);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add config variable for homedir for default mount table
|
* Add config variable for homedir for default mount table
|
||||||
* @param conf - add to this conf
|
* @param conf - add to this conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user