Class RouterFederationRename
java.lang.Object
org.apache.hadoop.hdfs.server.federation.router.RouterFederationRename
Rename across router federation namespaces based on federation balance. Both
the src and the dst coming from different namespaces need to have only one
destination. Snapshot paths are not allowed.
Users need write privilege of both src parent and dst parent to do router
federation rename.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRouterFederationRename(RouterRpcServer rpcServer, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanrouterFedRename(String src, String dst, List<RemoteLocation> srcLocations, List<RemoteLocation> dstLocations) Router federation rename across namespaces.
-
Constructor Details
-
RouterFederationRename
-
-
Method Details
-
routerFedRename
public boolean routerFedRename(String src, String dst, List<RemoteLocation> srcLocations, List<RemoteLocation> dstLocations) throws IOException Router federation rename across namespaces.- Parameters:
src- the source path. There is no mount point under the src path.dst- the dst path.srcLocations- the remote locations of src.dstLocations- the remote locations of dst.- Returns:
- true if rename succeeds.
- Throws:
IOException- if rename fails.
-
getRouterFederationRenameCount
public int getRouterFederationRenameCount()
-