dfsrouteradmin
Commands for managing Router-based federation.
The usage is as follows:
$ hdfs dfsrouteradmin
[-add <source> <nameservice1, nameservice2, ...> <destination> [-readonly] [-faulttolerant] [-order HASH|LOCAL|RANDOM|HASH_ALL] -owner <owner> -group <group> -mode <mode>]
[-update <source> [<nameservice1, nameservice2, ...> <destination>] [-readonly true|false] [-faulttolerant true|false] [-order HASH|LOCAL|RANDOM|HASH_ALL] -owner <owner> -group <group> -mode <mode>]
[-rm <source>]
[-ls [-d] <path>]
[-getDestination <path>]
[-setQuota <path> -nsQuota <nsQuota> -ssQuota <quota in bytes or quota size string>]
[-setStorageTypeQuota <path> -storageType <storage type> <quota in bytes or quota size string>]
[-clrQuota <path>]
[-clrStorageTypeQuota <path>]
[-safemode enter | leave | get]
[-nameservice disable | enable <nameservice>]
[-getDisabledNameservices]
[-refresh]
[-refreshRouterArgs <host:ipc_port> <key> [arg1..argn]]
[-refreshSuperUserGroupsConfiguration]
-add source nameservices destination |
Adds a mount table entry or update if it exists |
-update source nameservices destination |
Updates a mount table entry attributes |
-rm source |
Removes mount point of specified path |
--ls [-d] path |
Lists mount points under specified path.
Specify |
-getDestination path |
Gets the subcluster where a file is or should be created |
-setQuota path -nsQuota nsQuota -ssQuota ssQuota |
Sets quota for specified path |
-setStorageTypeQuota path -storageType storageType stQuota |
Clears quota of given mount point |
-clrQuota path |
Sets storage type quota for specified path |
-clrStorageTypeQuota path |
Clears storage type quota of given mount point |
-safemode enter leave get |
Manually sets the router entering or leaving the safe mode. The option get will be used for verifying if the Router is in the safe mode state |
-nameservice disable enable nameservice |
Disables/enables a name service from the federation. If disabled, requests will not go to that name service |
-getDisabledNameservices |
Gets the name services that are disabled in the federation |
-refresh |
Updates mount table cache of the connected router |
-refreshRouterArgs <host:ipc_port> <key> [arg1..argn] |
Triggers a runtime-refresh of the resource specified by <key> on |
-refreshSuperUserGroupsConfiguration |
Refreshes superuser proxy groups mappings on the router |