public class HsftpFileSystem extends HftpFileSystem
限定符和类型 | 类和说明 |
---|---|
protected static class |
HsftpFileSystem.DummyHostnameVerifier
Dummy hostname verifier that is used to bypass hostname checking
|
static class |
HsftpFileSystem.TokenManager |
FileSystem.Statistics
限定符和类型 | 字段和说明 |
---|---|
static Text |
TOKEN_KIND |
df, HFTP_DATE_FORMAT, HFTP_TIMEZONE, nnAddr, ugi
FS_DEFAULT_NAME_KEY, LOG, statistics
构造器和说明 |
---|
HsftpFileSystem() |
限定符和类型 | 方法和说明 |
---|---|
protected int |
getDefaultPort()
Get the default port for this file system.
|
protected String |
getUnderlyingProtocol()
Return the underlying protocol that is used to talk to the namenode.
|
void |
initialize(URI name,
Configuration conf)
Called after a new FileSystem instance is constructed.
|
protected HttpURLConnection |
openConnection(String path,
String query)
Open an HTTP connection to the namenode to read file data and metadata.
|
protected Token<DelegationTokenIdentifier> |
selectHftpDelegationToken() |
append, close, create, delete, delete, getCanonicalServiceName, getContentSummary, getDateFormat, getDelegationToken, getFileChecksum, getFileStatus, getNamenodeAddr, getRenewToken, getUri, getWorkingDirectory, initDelegationToken, listStatus, mkdirs, open, rename, selectHdfsDelegationToken, setDelegationToken, setWorkingDirectory, updateQuery
addFileSystemForTesting, append, append, checkPath, clearStatistics, closeAll, closeAllForUGI, completeLocalOutput, concat, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, deleteOnExit, exists, get, get, get, getAllStatistics, getBlockSize, getCacheSize, getCanonicalUri, getDefaultBlockSize, getDefaultBlockSize, getDefaultReplication, getDefaultReplication, getDefaultUri, getFileBlockLocations, getHomeDirectory, getLength, getLocal, getName, getNamed, getReplication, getStatistics, getStatistics, getUsed, globStatus, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, open, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri, setOwner, setPermission, setReplication, setTimes, setVerifyChecksum, startLocalOutput
getConf, setConf
public static final Text TOKEN_KIND
public void initialize(URI name, Configuration conf) throws IOException
FileSystem
initialize
在类中 HftpFileSystem
name
- a uri whose authority section names the host, port, etc.
for this FileSystemconf
- the configurationIOException
protected int getDefaultPort()
FileSystem
getDefaultPort
在类中 HftpFileSystem
protected String getUnderlyingProtocol()
getUnderlyingProtocol
在类中 HftpFileSystem
protected HttpURLConnection openConnection(String path, String query) throws IOException
HftpFileSystem
openConnection
在类中 HftpFileSystem
path
- The path component of the URLquery
- The query component of the URLIOException
protected Token<DelegationTokenIdentifier> selectHftpDelegationToken()
Copyright © 2009 The Apache Software Foundation