Java org.apache.hadoop.hdfs DistributedFileSystem fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.hdfs DistributedFileSystem fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.hdfs DistributedFileSystem.

The text is from its open source code.

Subclass

org.apache.hadoop.hdfs.DistributedFileSystem has subclasses.
Click this link to see all its subclasses.

Constructor

Method

FSDataOutputStreamappend(Path f)
Append to an existing file (optional operation).
voidclose()
voidconcat(Path trg, Path[] psrcs)
Move blocks from srcs to trg and delete srcs afterwards.
voidcopyFromLocalFile(Path src, Path dst)
The src file is on the local disk.
FSDataOutputStreamcreate(Path f)
Create an FSDataOutputStream at the indicated Path.
FSDataOutputStreamcreate(Path f, boolean overwrite)
Create an FSDataOutputStream at the indicated Path.
voidcreateEncryptionZone(final Path path, final String keyName)
booleancreateNewFile(Path f)
Creates the given Path as a brand-new zero-length file.
booleandelete(Path f, final boolean recursive)
voiddeleteSnapshot(final Path snapshotDir, final String snapshotName)
booleanexists(Path f)
Check if a path exists.
FileSystemget(Configuration conf)
Returns the configured FileSystem implementation.
DFSClientgetClient()
ConfigurationgetConf()
DatanodeInfo[]getDataNodeStats()
DatanodeInfo[]getDataNodeStats(final DatanodeReportType type)
TokengetDelegationToken(String renewer)
FileStatusgetFileStatus(Path f)
Returns the stat information about the file.
SnapshottableDirectoryStatus[]getSnapshottableDirListing()
FsStatusgetStatus()
Returns a status object describing the use and capacity of the filesystem.
URIgetUri()
FileStatus[]globStatus(Path pathPattern)

Return all the files that match filePattern and are not checksum files.

voidinitialize(URI uri, Configuration conf)
booleanisDirectory(Path f)
True iff the named path is a directory.
booleanisFileClosed(final Path src)
Get the close status of a file
FileStatus[]listStatus(Path p)
List all the entries of a directory Note that this operation is not atomic for a large directory.
FileStatus[]listStatus(Path f, PathFilter filter)
Filter files/directories in the given path using the user-supplied path filter.
booleanmkdirs(Path f)
Call #mkdirs(Path,FsPermission) with default permission.
booleanmkdirs(Path f, FsPermission permission)
Create a directory and its parent directories.
FSDataInputStreamopen(Path f)
Opens an FSDataInputStream at the indicated Path.
booleanrecoverLease(final Path f)
Start the lease recovery of a file
booleanrename(Path src, Path dst)
voidsetPermission(Path p, final FsPermission permission)
voidsetQuota(Path src, final long namespaceQuota, final long storagespaceQuota)
Set a directory's quotas
booleansetSafeMode(HdfsConstants.SafeModeAction action)
Enter, leave or get safe mode.