|
||||||||||
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.fs.FilterFileSystem
org.apache.hadoop.fs.ChecksumFileSystem
org.apache.hadoop.dfs.DistributedFileSystem
public class DistributedFileSystem
Implementation of the abstract FileSystem for the DFS system. This object is the way end-user code interacts with a Hadoop DistributedFileSystem.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.fs.FilterFileSystem |
---|
fs |
Fields inherited from class org.apache.hadoop.fs.FileSystem |
---|
LOG |
Constructor Summary | |
---|---|
DistributedFileSystem()
|
|
DistributedFileSystem(InetSocketAddress namenode,
Configuration conf)
Deprecated. |
Method Summary | |
---|---|
long |
getContentLength(Path f)
Return the number of bytes of the given path If f is a file, return the size of the file; If f is a directory, return the size of the directory tree |
DatanodeInfo[] |
getDataNodeStats()
Return statistics for each datanode. |
long |
getRawCapacity()
Return the total raw capacity of the filesystem, disregarding replication . |
long |
getRawUsed()
Return the total raw used space in the filesystem, disregarding replication . |
void |
refreshNodes()
|
boolean |
reportChecksumFailure(Path f,
FSDataInputStream in,
long inPos,
FSDataInputStream sums,
long sumsPos)
We need to find the blocks that didn't match. |
boolean |
setSafeMode(FSConstants.SafeModeAction action)
Enter, leave or get safe mode. |
Methods inherited from class org.apache.hadoop.fs.ChecksumFileSystem |
---|
completeLocalOutput, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, delete, getBytesPerSum, getChecksumFile, getChecksumFileLength, getRawFileSystem, isChecksumFile, listPaths, listPaths, lock, mkdirs, open, release, rename, setReplication, startLocalOutput |
Methods inherited from class org.apache.hadoop.fs.FilterFileSystem |
---|
checkPath, exists, getBlockSize, getConf, getDefaultBlockSize, getDefaultReplication, getFileCacheHints, getLength, getName, getReplication, getUri, getWorkingDirectory, initialize, isDirectory, makeQualified, setWorkingDirectory |
Methods inherited from class org.apache.hadoop.fs.FileSystem |
---|
close, copyFromLocalFile, copyToLocalFile, create, create, create, create, create, create, create, createNewFile, get, get, getLocal, getNamed, getUsed, globPaths, globPaths, isFile, listPaths, listPaths, moveFromLocalFile, moveToLocalFile, open, parseArgs |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributedFileSystem()
public DistributedFileSystem(InetSocketAddress namenode, Configuration conf) throws IOException
IOException
Method Detail |
---|
public long getContentLength(Path f) throws IOException
FileSystem
getContentLength
in class FileSystem
IOException
public long getRawCapacity() throws IOException
IOException
public long getRawUsed() throws IOException
IOException
public DatanodeInfo[] getDataNodeStats() throws IOException
IOException
public boolean setSafeMode(FSConstants.SafeModeAction action) throws IOException
IOException
ClientProtocol.setSafeMode(FSConstants.SafeModeAction)
public void refreshNodes() throws IOException
IOException
public boolean reportChecksumFailure(Path f, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos)
reportChecksumFailure
in class ChecksumFileSystem
f
- the file name containing the errorin
- the stream open on the fileinPos
- the position of the beginning of the bad data in the filesums
- the stream open on the checksum filesumsPos
- the position of the beginning of the bad data in the checksum file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |