|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.hadoop.fs.FileSystem org.apache.hadoop.fs.FilterFileSystem org.apache.hadoop.fs.ChecksumFileSystem org.apache.hadoop.dfs.ChecksumDistributedFileSystem
public class ChecksumDistributedFileSystem
An implementation of ChecksumFileSystem over DistributedFileSystem. Note that as of now (May 07), DistributedFileSystem natively checksums all of its data. Using this class is not be necessary in most cases. Currently provided mainly for backward compatibility and testing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileSystem |
---|
FileSystem.Statistics |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.fs.FilterFileSystem |
---|
fs |
Fields inherited from class org.apache.hadoop.fs.FileSystem |
---|
LOG, statistics |
Constructor Summary | |
---|---|
ChecksumDistributedFileSystem()
|
|
ChecksumDistributedFileSystem(InetSocketAddress namenode,
Configuration conf)
Deprecated. |
Method Summary | |
---|---|
UpgradeStatusReport |
distributedUpgradeProgress(FSConstants.UpgradeAction action)
|
void |
finalizeUpgrade()
Finalize previously upgraded files system state. |
DatanodeInfo[] |
getDataNodeStats()
Return statistics for each datanode. |
FileStatus |
getFileStatus(Path f)
Returns the stat information about the file. |
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 |
metaSave(String pathname)
|
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, getApproxChkSumLength, getBytesPerSum, getChecksumFile, getChecksumFileLength, getChecksumLength, getRawFileSystem, isChecksumFile, listStatus, mkdirs, open, rename, setConf, setReplication, startLocalOutput |
Methods inherited from class org.apache.hadoop.fs.FilterFileSystem |
---|
append, checkPath, close, create, delete, getConf, getDefaultBlockSize, getDefaultReplication, getFileBlockLocations, getFileBlockLocations, getHomeDirectory, getName, getUri, getWorkingDirectory, initialize, makeQualified, mkdirs, setOwner, setPermission, setWorkingDirectory |
Methods inherited from class org.apache.hadoop.fs.FileSystem |
---|
append, append, closeAll, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, createNewFile, deleteOnExit, exists, get, get, getBlockSize, getContentSummary, getDefaultUri, getLength, getLocal, getNamed, getReplication, getStatistics, getUsed, globStatus, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, open, parseArgs, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChecksumDistributedFileSystem()
public ChecksumDistributedFileSystem(InetSocketAddress namenode, Configuration conf) throws IOException
IOException
Method Detail |
---|
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 void finalizeUpgrade() throws IOException
IOException
public UpgradeStatusReport distributedUpgradeProgress(FSConstants.UpgradeAction action) throws IOException
IOException
public void metaSave(String pathname) 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
public FileStatus getFileStatus(Path f) throws IOException
getFileStatus
in class FilterFileSystem
f
- The path we want information from
FileNotFoundException
- when the path does not exist;
IOException see specific implementation
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |