Service, FileSystemAccess@Private public class FileSystemAccessService extends BaseService implements FileSystemAccess
FileSystemAccess.FileSystemExecutor<T>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
AUTHENTICATION_TYPE |
|
static java.lang.String |
FS_CACHE_PURGE_FREQUENCY |
|
static java.lang.String |
FS_CACHE_PURGE_TIMEOUT |
|
static java.lang.String |
HADOOP_CONF_DIR |
|
static java.lang.String |
KERBEROS_KEYTAB |
|
static java.lang.String |
KERBEROS_PRINCIPAL |
|
static java.lang.String |
NAME_NODE_WHITELIST |
|
static java.lang.String |
PREFIX |
| Constructor | Description |
|---|---|
FileSystemAccessService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
checkNameNodeHealth(org.apache.hadoop.fs.FileSystem fileSystem) |
|
protected void |
closeFileSystem(org.apache.hadoop.fs.FileSystem fs) |
|
org.apache.hadoop.fs.FileSystem |
createFileSystem(java.lang.String user,
org.apache.hadoop.conf.Configuration conf) |
|
protected org.apache.hadoop.fs.FileSystem |
createFileSystem(org.apache.hadoop.conf.Configuration namenodeConf) |
|
org.apache.hadoop.fs.FileSystem |
createFileSystemInternal(java.lang.String user,
org.apache.hadoop.conf.Configuration conf) |
|
<T> T |
execute(java.lang.String user,
org.apache.hadoop.conf.Configuration conf,
FileSystemAccess.FileSystemExecutor<T> executor) |
|
org.apache.hadoop.conf.Configuration |
getFileSystemConfiguration() |
|
java.lang.Class |
getInterface() |
Returns the interface implemented by this service.
|
java.lang.Class[] |
getServiceDependencies() |
Returns the service dependencies of this service.
|
protected org.apache.hadoop.security.UserGroupInformation |
getUGI(java.lang.String user) |
|
protected void |
init() |
Initializes the server.
|
void |
postInit() |
Post initializes the service.
|
void |
releaseFileSystem(org.apache.hadoop.fs.FileSystem fs) |
|
protected void |
setRequiredServiceHadoopConf(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
validateNamenode(java.lang.String namenode) |
destroy, getPrefix, getPrefixedName, getServer, getServiceConfig, init, serverStatusChangepublic static final java.lang.String PREFIX
public static final java.lang.String AUTHENTICATION_TYPE
public static final java.lang.String KERBEROS_KEYTAB
public static final java.lang.String KERBEROS_PRINCIPAL
public static final java.lang.String FS_CACHE_PURGE_FREQUENCY
public static final java.lang.String FS_CACHE_PURGE_TIMEOUT
public static final java.lang.String NAME_NODE_WHITELIST
public static final java.lang.String HADOOP_CONF_DIR
protected void init()
throws ServiceException
BaseService
This method is called by BaseService.init(Server) after all service properties
(properties prefixed with
init in class BaseServiceServiceException - thrown if the service could not be initialized.public void postInit()
throws ServiceException
BaseServiceServer after all services of the server have been initialized.
This method does a NOP.
postInit in interface ServicepostInit in class BaseServiceServiceException - thrown if the service could not be
post-initialized.public java.lang.Class getInterface()
ServiceServer when the Server.get(Class) method is used to
retrieve a service.getInterface in interface Servicepublic java.lang.Class[] getServiceDependencies()
BaseServiceThis method returns an empty array (size 0)
getServiceDependencies in interface ServicegetServiceDependencies in class BaseServiceprotected org.apache.hadoop.security.UserGroupInformation getUGI(java.lang.String user)
throws java.io.IOException
java.io.IOExceptionprotected void setRequiredServiceHadoopConf(org.apache.hadoop.conf.Configuration conf)
protected org.apache.hadoop.fs.FileSystem createFileSystem(org.apache.hadoop.conf.Configuration namenodeConf)
throws java.io.IOException
java.io.IOExceptionprotected void closeFileSystem(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
java.io.IOExceptionprotected void validateNamenode(java.lang.String namenode)
throws FileSystemAccessException
FileSystemAccessExceptionprotected void checkNameNodeHealth(org.apache.hadoop.fs.FileSystem fileSystem)
throws FileSystemAccessException
FileSystemAccessExceptionpublic <T> T execute(java.lang.String user,
org.apache.hadoop.conf.Configuration conf,
FileSystemAccess.FileSystemExecutor<T> executor)
throws FileSystemAccessException
execute in interface FileSystemAccessFileSystemAccessExceptionpublic org.apache.hadoop.fs.FileSystem createFileSystemInternal(java.lang.String user,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException,
FileSystemAccessException
java.io.IOExceptionFileSystemAccessExceptionpublic org.apache.hadoop.fs.FileSystem createFileSystem(java.lang.String user,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException,
FileSystemAccessException
createFileSystem in interface FileSystemAccessjava.io.IOExceptionFileSystemAccessExceptionpublic void releaseFileSystem(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
releaseFileSystem in interface FileSystemAccessjava.io.IOExceptionpublic org.apache.hadoop.conf.Configuration getFileSystemConfiguration()
getFileSystemConfiguration in interface FileSystemAccessCopyright © 2008–2025 Apache Software Foundation. All rights reserved.