java.io.Closeable, java.lang.AutoCloseable, RouterAdminProtocol, MountTableManager, RouterGenericManager, NameserviceManager, RouterStateManager, org.apache.hadoop.ipc.GenericRefreshProtocol, org.apache.hadoop.ipc.RefreshCallQueueProtocol, org.apache.hadoop.service.Servicepublic class RouterAdminServer extends org.apache.hadoop.service.AbstractService implements RouterAdminProtocol, org.apache.hadoop.ipc.RefreshCallQueueProtocol
Router.| Constructor | Description |
|---|---|
RouterAdminServer(org.apache.hadoop.conf.Configuration conf,
Router router) |
| Modifier and Type | Method | Description |
|---|---|---|
AddMountTableEntriesResponse |
addMountTableEntries(AddMountTableEntriesRequest request) |
Add multiple entries to the mount table.
|
AddMountTableEntryResponse |
addMountTableEntry(AddMountTableEntryRequest request) |
Add an entry to the mount table.
|
DisableNameserviceResponse |
disableNameservice(DisableNameserviceRequest request) |
Disable a name service.
|
EnableNameserviceResponse |
enableNameservice(EnableNameserviceRequest request) |
Enable a name service.
|
EnterSafeModeResponse |
enterSafeMode(EnterSafeModeRequest request) |
Enter safe mode and change Router state to RouterServiceState#SAFEMODE.
|
GetDestinationResponse |
getDestination(GetDestinationRequest request) |
Get the destination subcluster (namespace) of a file/directory.
|
GetDisabledNameservicesResponse |
getDisabledNameservices(GetDisabledNameservicesRequest request) |
Get the list of disabled name service.
|
GetMountTableEntriesResponse |
getMountTableEntries(GetMountTableEntriesRequest request) |
List all mount table entries present at or below the path.
|
static RouterPermissionChecker |
getPermissionChecker() |
Get a new permission checker used for making mount table access
control.
|
java.net.InetSocketAddress |
getRpcAddress() |
Get the RPC address of the admin service.
|
GetSafeModeResponse |
getSafeMode(GetSafeModeRequest request) |
Verify if current Router state is safe mode.
|
static java.lang.String |
getSuperGroup() |
Get super group name.
|
static java.lang.String |
getSuperUser() |
Get super user name.
|
LeaveSafeModeResponse |
leaveSafeMode(LeaveSafeModeRequest request) |
Leave safe mode and change Router state to RouterServiceState#RUNNING.
|
java.util.Collection<org.apache.hadoop.ipc.RefreshResponse> |
refresh(java.lang.String identifier,
java.lang.String[] args) |
|
void |
refreshCallQueue() |
|
RefreshMountTableEntriesResponse |
refreshMountTableEntries(RefreshMountTableEntriesRequest request) |
Refresh mount table entries cache from the state store.
|
boolean |
refreshSuperUserGroupsConfiguration() |
Refresh superuser proxy groups mappings (used in RBF).
|
RemoveMountTableEntryResponse |
removeMountTableEntry(RemoveMountTableEntryRequest request) |
Remove an entry from the mount table.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration configuration) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
|
UpdateMountTableEntryResponse |
updateMountTableEntry(UpdateMountTableEntryRequest request) |
Updates an existing entry in the mount table.
|
java.util.List<java.lang.String> |
verifyFileInDestinations(MountTable entry) |
Verify the file exists in destination nameservices to avoid dangling
mount points.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic RouterAdminServer(org.apache.hadoop.conf.Configuration conf,
Router router)
throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getRpcAddress()
protected void serviceInit(org.apache.hadoop.conf.Configuration configuration)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic AddMountTableEntryResponse addMountTableEntry(AddMountTableEntryRequest request) throws java.io.IOException
MountTableManageraddMountTableEntry in interface MountTableManagerrequest - Fully populated request object.java.io.IOException - Throws exception if the data store is not initialized.public AddMountTableEntriesResponse addMountTableEntries(AddMountTableEntriesRequest request) throws java.io.IOException
MountTableManageraddMountTableEntries in interface MountTableManagerrequest - Request object with fully populated list of mount point entries.java.io.IOException - Throws exception if the data store is not initialized.public UpdateMountTableEntryResponse updateMountTableEntry(UpdateMountTableEntryRequest request) throws java.io.IOException
MountTableManagerupdateMountTableEntry in interface MountTableManagerrequest - Fully populated request object.java.io.IOException - Throws exception if the data store is not initialized.public RemoveMountTableEntryResponse removeMountTableEntry(RemoveMountTableEntryRequest request) throws java.io.IOException
MountTableManagerremoveMountTableEntry in interface MountTableManagerrequest - Fully populated request object.java.io.IOException - Throws exception if the data store is not initialized.public GetMountTableEntriesResponse getMountTableEntries(GetMountTableEntriesRequest request) throws java.io.IOException
MountTableManagergetMountTableEntries in interface MountTableManagerrequest - Fully populated request object.java.io.IOException - Throws exception if the data store cannot be queried.public EnterSafeModeResponse enterSafeMode(EnterSafeModeRequest request) throws java.io.IOException
RouterStateManagerenterSafeMode in interface RouterStateManagerrequest - Request to enter safe mode.java.io.IOException - If it cannot perform the operation.public LeaveSafeModeResponse leaveSafeMode(LeaveSafeModeRequest request) throws java.io.IOException
RouterStateManagerleaveSafeMode in interface RouterStateManagerrequest - Request to leave safe mode.java.io.IOException - If it cannot perform the operation.public GetSafeModeResponse getSafeMode(GetSafeModeRequest request) throws java.io.IOException
RouterStateManagergetSafeMode in interface RouterStateManagerrequest - Request to get the safe mode state.java.io.IOException - If it cannot perform the operation.public RefreshMountTableEntriesResponse refreshMountTableEntries(RefreshMountTableEntriesRequest request) throws java.io.IOException
MountTableManagerrefreshMountTableEntries in interface MountTableManagerrequest - Fully populated request object.java.io.IOException - Throws exception if the data store is not initialized.public GetDestinationResponse getDestination(GetDestinationRequest request) throws java.io.IOException
MountTableManagergetDestination in interface MountTableManagerrequest - Fully populated request object including the file to check.java.io.IOException - Throws exception if the data store is not initialized.public java.util.List<java.lang.String> verifyFileInDestinations(MountTable entry) throws java.io.IOException
entry - the new mount points added, could be from add or update.java.io.IOException - unable to verify the file in destinationspublic DisableNameserviceResponse disableNameservice(DisableNameserviceRequest request) throws java.io.IOException
NameserviceManagerdisableNameservice in interface NameserviceManagerrequest - Request to disable a name service.java.io.IOException - If it cannot perform the operation.public EnableNameserviceResponse enableNameservice(EnableNameserviceRequest request) throws java.io.IOException
NameserviceManagerenableNameservice in interface NameserviceManagerrequest - Request to enable a name service.java.io.IOException - If it cannot perform the operation.public GetDisabledNameservicesResponse getDisabledNameservices(GetDisabledNameservicesRequest request) throws java.io.IOException
NameserviceManagergetDisabledNameservices in interface NameserviceManagerrequest - Request to get the disabled name services.java.io.IOException - If it cannot perform the operation.public static RouterPermissionChecker getPermissionChecker() throws org.apache.hadoop.security.AccessControlException
org.apache.hadoop.security.AccessControlException - If the user is not authorized.public static java.lang.String getSuperUser()
public static java.lang.String getSuperGroup()
public java.util.Collection<org.apache.hadoop.ipc.RefreshResponse> refresh(java.lang.String identifier,
java.lang.String[] args)
refresh in interface org.apache.hadoop.ipc.GenericRefreshProtocolpublic boolean refreshSuperUserGroupsConfiguration()
throws java.io.IOException
RouterGenericManagerrefreshSuperUserGroupsConfiguration in interface RouterGenericManagerjava.io.IOException - if operation was not successful.public void refreshCallQueue()
throws java.io.IOException
refreshCallQueue in interface org.apache.hadoop.ipc.RefreshCallQueueProtocoljava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.