public class ChecksumDistributedFileSystem extends ChecksumFileSystem
FileSystem.StatisticsfsFS_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, startLocalOutputcheckPath, close, concat, delete, getCanonicalServiceName, getConf, getDefaultBlockSize, getDefaultReplication, getFileBlockLocations, getFileChecksum, getHomeDirectory, getName, getUri, getWorkingDirectory, initialize, makeQualified, mkdirs, setOwner, setPermission, setWorkingDirectoryaddFileSystemForTesting, 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, setTimespublic ChecksumDistributedFileSystem()
public ChecksumDistributedFileSystem(InetSocketAddress namenode, Configuration conf) throws IOException
IOExceptionpublic long getRawCapacity()
throws IOException
IOExceptionpublic long getRawUsed()
throws IOException
IOExceptionpublic DatanodeInfo[] getDataNodeStats() throws IOException
IOExceptionpublic boolean setSafeMode(FSConstants.SafeModeAction action) throws IOException
public void refreshNodes()
throws IOException
IOExceptionpublic void finalizeUpgrade()
throws IOException
IOExceptionpublic UpgradeStatusReport distributedUpgradeProgress(FSConstants.UpgradeAction action) throws IOException
IOExceptionpublic void metaSave(String pathname) throws IOException
IOExceptionpublic boolean reportChecksumFailure(Path f, FSDataInputStream in, long inPos, FSDataInputStream sums, long sumsPos)
reportChecksumFailure 在类中 ChecksumFileSystemf - 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 在类中 FilterFileSystemf - The path we want information fromFileNotFoundException - when the path does not exist;
IOException see specific implementationIOExceptionCopyright © 2009 The Apache Software Foundation