public class ChecksumDistributedFileSystem extends ChecksumFileSystem
FileSystem.Statistics
fs
FS_DEFAULT_NAME_KEY, LOG, statistics
构造器和说明 |
---|
ChecksumDistributedFileSystem() |
ChecksumDistributedFileSystem(InetSocketAddress namenode,
Configuration conf)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
append, completeLocalOutput, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, createNonRecursive, delete, getApproxChkSumLength, getBytesPerSum, getChecksumFile, getChecksumFileLength, getChecksumLength, getRawFileSystem, isChecksumFile, listStatus, mkdirs, open, rename, setConf, setReplication, setVerifyChecksum, startLocalOutput
checkPath, close, concat, delete, getCanonicalServiceName, getConf, getDefaultBlockSize, getDefaultReplication, getFileBlockLocations, getFileChecksum, getHomeDirectory, getName, getUri, getWorkingDirectory, initialize, makeQualified, mkdirs, setOwner, setPermission, setWorkingDirectory
addFileSystemForTesting, append, append, clearStatistics, closeAll, closeAllForUGI, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, create, create, createNewFile, createNonRecursive, deleteOnExit, exists, get, get, get, getAllStatistics, getBlockSize, getCacheSize, getCanonicalUri, getContentSummary, getDefaultBlockSize, getDefaultPort, getDefaultReplication, getDefaultUri, getDelegationToken, getLength, getLocal, getNamed, getReplication, getStatistics, getStatistics, getUsed, globStatus, globStatus, isDirectory, isFile, listStatus, listStatus, listStatus, mkdirs, moveFromLocalFile, moveFromLocalFile, moveToLocalFile, open, printStatistics, processDeleteOnExit, setDefaultUri, setDefaultUri, setTimes
public ChecksumDistributedFileSystem()
public ChecksumDistributedFileSystem(InetSocketAddress namenode, Configuration conf) throws IOException
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
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
在类中 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 filepublic FileStatus getFileStatus(Path f) throws IOException
getFileStatus
在类中 FilterFileSystem
f
- The path we want information fromFileNotFoundException
- when the path does not exist;
IOException see specific implementationIOException
Copyright © 2009 The Apache Software Foundation