|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.hdfs.web.WebHdfsFileSystem
public class WebHdfsFileSystem
A FileSystem for HDFS over the web.
Nested Class Summary | |
---|---|
static class |
WebHdfsFileSystem.DtRenewer
Delegation token renewer. |
Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem |
---|
org.apache.hadoop.fs.FileSystem.Statistics |
Field Summary | |
---|---|
static org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
DT_SELECTOR
Token selector |
static org.apache.commons.logging.Log |
LOG
|
static String |
PATH_PREFIX
Http URI: http://namenode:port/{PATH_PREFIX}/path/to/file |
static String |
SCHEME
File System URI: {SCHEME}://namenode:port/path/to/file |
static org.apache.hadoop.io.Text |
TOKEN_KIND
Delegation token kind |
static int |
VERSION
WebHdfs version. |
Fields inherited from class org.apache.hadoop.fs.FileSystem |
---|
DEFAULT_FS, FS_DEFAULT_NAME_KEY, statistics |
Constructor Summary | |
---|---|
WebHdfsFileSystem()
|
Method Summary | ||
---|---|---|
org.apache.hadoop.fs.FSDataOutputStream |
append(org.apache.hadoop.fs.Path f,
int bufferSize,
org.apache.hadoop.util.Progressable progress)
|
|
org.apache.hadoop.fs.FSDataOutputStream |
create(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
org.apache.hadoop.util.Progressable progress)
|
|
void |
createSymlink(org.apache.hadoop.fs.Path destination,
org.apache.hadoop.fs.Path f,
boolean createParent)
Create a symlink pointing to the destination path. |
|
boolean |
delete(org.apache.hadoop.fs.Path f)
|
|
boolean |
delete(org.apache.hadoop.fs.Path f,
boolean recursive)
|
|
org.apache.hadoop.fs.ContentSummary |
getContentSummary(org.apache.hadoop.fs.Path p)
|
|
long |
getDefaultBlockSize()
|
|
protected int |
getDefaultPort()
|
|
short |
getDefaultReplication()
|
|
org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> |
getDelegationToken(String renewer)
|
|
List<org.apache.hadoop.security.token.Token<?>> |
getDelegationTokens(String renewer)
|
|
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.FileStatus status,
long offset,
long length)
|
|
org.apache.hadoop.fs.BlockLocation[] |
getFileBlockLocations(org.apache.hadoop.fs.Path p,
long offset,
long length)
|
|
org.apache.hadoop.fs.MD5MD5CRC32FileChecksum |
getFileChecksum(org.apache.hadoop.fs.Path p)
|
|
org.apache.hadoop.fs.FileStatus |
getFileStatus(org.apache.hadoop.fs.Path f)
|
|
org.apache.hadoop.fs.Path |
getHomeDirectory()
|
|
static String |
getHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi)
|
|
org.apache.hadoop.security.token.Token<?> |
getRenewToken()
|
|
URI |
getUri()
|
|
org.apache.hadoop.fs.Path |
getWorkingDirectory()
|
|
protected void |
initDelegationToken()
|
|
void |
initialize(URI uri,
org.apache.hadoop.conf.Configuration conf)
|
|
static boolean |
isEnabled(org.apache.hadoop.conf.Configuration conf,
org.apache.commons.logging.Log log)
Is WebHDFS enabled in conf? |
|
org.apache.hadoop.fs.FileStatus[] |
listStatus(org.apache.hadoop.fs.Path f)
|
|
boolean |
mkdirs(org.apache.hadoop.fs.Path f,
org.apache.hadoop.fs.permission.FsPermission permission)
|
|
org.apache.hadoop.fs.FSDataInputStream |
open(org.apache.hadoop.fs.Path f,
int buffersize)
|
|
boolean |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
|
|
void |
rename(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst,
org.apache.hadoop.fs.Options.Rename... options)
|
|
|
setDelegationToken(org.apache.hadoop.security.token.Token<T> token)
Set delegation token. |
|
void |
setOwner(org.apache.hadoop.fs.Path p,
String owner,
String group)
|
|
void |
setPermission(org.apache.hadoop.fs.Path p,
org.apache.hadoop.fs.permission.FsPermission permission)
|
|
boolean |
setReplication(org.apache.hadoop.fs.Path p,
short replication)
|
|
void |
setTimes(org.apache.hadoop.fs.Path p,
long mtime,
long atime)
|
|
void |
setWorkingDirectory(org.apache.hadoop.fs.Path dir)
|
Methods inherited from class org.apache.hadoop.fs.FileSystem |
---|
append, append, checkPath, clearStatistics, close, closeAll, closeAllForUGI, completeLocalOutput, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, createNonRecursive, deleteOnExit, exists, get, get, get, getAllStatistics, getBlockSize, getCanonicalServiceName, getCanonicalUri, getDefaultUri, getInitialWorkingDirectory, getLength, getLocal, getName, getNamed, getReplication, getServerDefaults, getStatistics, getStatistics, getStatus, getStatus, getUsed, globStatus, globStatus, isDirectory, isFile, listCorruptFileBlocks, listFiles, listLocatedStatus, listLocatedStatus, listStatus, listStatus, listStatus, makeQualified, mkdirs, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, newInstance, newInstance, newInstance, newInstanceLocal, open, primitiveCreate, primitiveMkdir, primitiveMkdir, printStatistics, processDeleteOnExit, resolvePath, setDefaultUri, setDefaultUri, setVerifyChecksum, startLocalOutput |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final String SCHEME
public static final int VERSION
public static final String PATH_PREFIX
public static final org.apache.hadoop.io.Text TOKEN_KIND
public static final org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> DT_SELECTOR
Constructor Detail |
---|
public WebHdfsFileSystem()
Method Detail |
---|
public static boolean isEnabled(org.apache.hadoop.conf.Configuration conf, org.apache.commons.logging.Log log)
public void initialize(URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
initialize
in class org.apache.hadoop.fs.FileSystem
IOException
protected void initDelegationToken() throws IOException
IOException
protected int getDefaultPort()
getDefaultPort
in class org.apache.hadoop.fs.FileSystem
public URI getUri()
getUri
in class org.apache.hadoop.fs.FileSystem
public static String getHomeDirectoryString(org.apache.hadoop.security.UserGroupInformation ugi)
public org.apache.hadoop.fs.Path getHomeDirectory()
getHomeDirectory
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.Path getWorkingDirectory()
getWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
public void setWorkingDirectory(org.apache.hadoop.fs.Path dir)
setWorkingDirectory
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FileStatus getFileStatus(org.apache.hadoop.fs.Path f) throws IOException
getFileStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean mkdirs(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException
mkdirs
in class org.apache.hadoop.fs.FileSystem
IOException
public void createSymlink(org.apache.hadoop.fs.Path destination, org.apache.hadoop.fs.Path f, boolean createParent) throws IOException
IOException
Hdfs.createSymlink(Path, Path, boolean)
public boolean rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst) throws IOException
rename
in class org.apache.hadoop.fs.FileSystem
IOException
public void rename(org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dst, org.apache.hadoop.fs.Options.Rename... options) throws IOException
rename
in class org.apache.hadoop.fs.FileSystem
IOException
public void setOwner(org.apache.hadoop.fs.Path p, String owner, String group) throws IOException
setOwner
in class org.apache.hadoop.fs.FileSystem
IOException
public void setPermission(org.apache.hadoop.fs.Path p, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException
setPermission
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean setReplication(org.apache.hadoop.fs.Path p, short replication) throws IOException
setReplication
in class org.apache.hadoop.fs.FileSystem
IOException
public void setTimes(org.apache.hadoop.fs.Path p, long mtime, long atime) throws IOException
setTimes
in class org.apache.hadoop.fs.FileSystem
IOException
public long getDefaultBlockSize()
getDefaultBlockSize
in class org.apache.hadoop.fs.FileSystem
public short getDefaultReplication()
getDefaultReplication
in class org.apache.hadoop.fs.FileSystem
public org.apache.hadoop.fs.FSDataOutputStream create(org.apache.hadoop.fs.Path f, org.apache.hadoop.fs.permission.FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, org.apache.hadoop.util.Progressable progress) throws IOException
create
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataOutputStream append(org.apache.hadoop.fs.Path f, int bufferSize, org.apache.hadoop.util.Progressable progress) throws IOException
append
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean delete(org.apache.hadoop.fs.Path f) throws IOException
delete
in class org.apache.hadoop.fs.FileSystem
IOException
public boolean delete(org.apache.hadoop.fs.Path f, boolean recursive) throws IOException
delete
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FSDataInputStream open(org.apache.hadoop.fs.Path f, int buffersize) throws IOException
open
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.FileStatus[] listStatus(org.apache.hadoop.fs.Path f) throws IOException
listStatus
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException
getDelegationToken
in class org.apache.hadoop.fs.FileSystem
IOException
public List<org.apache.hadoop.security.token.Token<?>> getDelegationTokens(String renewer) throws IOException
getDelegationTokens
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.security.token.Token<?> getRenewToken()
getRenewToken
in interface DelegationTokenRenewer.Renewable
public <T extends org.apache.hadoop.security.token.TokenIdentifier> void setDelegationToken(org.apache.hadoop.security.token.Token<T> token)
DelegationTokenRenewer.Renewable
setDelegationToken
in interface DelegationTokenRenewer.Renewable
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.FileStatus status, long offset, long length) throws IOException
getFileBlockLocations
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.BlockLocation[] getFileBlockLocations(org.apache.hadoop.fs.Path p, long offset, long length) throws IOException
getFileBlockLocations
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.ContentSummary getContentSummary(org.apache.hadoop.fs.Path p) throws IOException
getContentSummary
in class org.apache.hadoop.fs.FileSystem
IOException
public org.apache.hadoop.fs.MD5MD5CRC32FileChecksum getFileChecksum(org.apache.hadoop.fs.Path p) throws IOException
getFileChecksum
in class org.apache.hadoop.fs.FileSystem
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |