Class RouterClientProtocolTranslatorPB
java.lang.Object
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
org.apache.hadoop.hdfs.protocolPB.RouterClientProtocolTranslatorPB
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hdfs.protocol.ClientProtocol,org.apache.hadoop.ipc.ProtocolMetaInterface,org.apache.hadoop.ipc.ProtocolTranslator
@Private
@Stable
public class RouterClientProtocolTranslatorPB
extends org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
This class forwards NN's ClientProtocol calls as RPC calls to the NN server
while translating from the parameter types used in ClientProtocol to the
new PB types.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.BatchedCacheEntries, org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.BatchedCachePoolEntries -
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
VOID_FINALIZE_UPGRADE_REQUEST, VOID_GET_DATA_ENCRYPTIONKEY_REQUEST, VOID_GET_EC_CODEC_REQUEST, VOID_GET_EC_POLICIES_REQUEST, VOID_GET_FS_ECBLOCKGROUP_STATS_REQUEST, VOID_GET_FS_REPLICATED_BLOCK_STATS_REQUEST, VOID_GET_FSSTATUS_REQUEST, VOID_GET_SERVER_DEFAULT_REQUEST, VOID_GET_STORAGE_POLICIES_REQUEST, VOID_REFRESH_NODES_REQUEST, VOID_ROLLEDITS_REQUEST, VOID_UPGRADE_STATUS_REQUESTFields inherited from interface org.apache.hadoop.hdfs.protocol.ClientProtocol
GET_STATS_BYTES_IN_FUTURE_BLOCKS_IDX, GET_STATS_CAPACITY_IDX, GET_STATS_CORRUPT_BLOCKS_IDX, GET_STATS_LOW_REDUNDANCY_IDX, GET_STATS_MISSING_BLOCKS_IDX, GET_STATS_MISSING_REPL_ONE_BLOCKS_IDX, GET_STATS_PENDING_DELETION_BLOCKS_IDX, GET_STATS_REMAINING_IDX, GET_STATS_UNDER_REPLICATED_IDX, GET_STATS_USED_IDX, STATS_ARRAY_LENGTH, versionID -
Constructor Summary
ConstructorsConstructorDescriptionRouterClientProtocolTranslatorPB(org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolPB proxy) -
Method Summary
Modifier and TypeMethodDescriptionvoidabandonBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b, long fileId, String src, String holder) org.apache.hadoop.hdfs.protocol.LocatedBlockaddBlock(String src, String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock previous, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] excludeNodes, long fileId, String[] favoredNodes, EnumSet<org.apache.hadoop.hdfs.AddBlockFlag> addBlockFlags) longaddCacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo directive, EnumSet<org.apache.hadoop.fs.CacheFlag> flags) voidaddCachePool(org.apache.hadoop.hdfs.protocol.CachePoolInfo info) org.apache.hadoop.hdfs.protocol.AddErasureCodingPolicyResponse[]addErasureCodingPolicies(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy[] policies) voidallowSnapshot(String snapshotRoot) org.apache.hadoop.hdfs.protocol.LastBlockWithStatusappend(String src, String clientName, org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag) voidcancelDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) voidcheckAccess(String path, org.apache.hadoop.fs.permission.FsAction mode) voidclose()booleancomplete(String src, String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock last, long fileId) voidorg.apache.hadoop.hdfs.protocol.HdfsFileStatuscreate(String src, org.apache.hadoop.fs.permission.FsPermission masked, String clientName, org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag, boolean createParent, short replication, long blockSize, org.apache.hadoop.crypto.CryptoProtocolVersion[] supportedVersions, String ecPolicyName, String storagePolicy) voidcreateEncryptionZone(String src, String keyName) createSnapshot(String snapshotRoot, String snapshotName) voidcreateSymlink(String target, String link, org.apache.hadoop.fs.permission.FsPermission dirPerm, boolean createParent) booleanvoiddeleteSnapshot(String snapshotRoot, String snapshotName) voiddisableErasureCodingPolicy(String ecPolicyName) voiddisallowSnapshot(String snapshotRoot) voidenableErasureCodingPolicy(String ecPolicyName) voidvoidorg.apache.hadoop.fs.permission.AclStatusgetAclStatus(String src) org.apache.hadoop.hdfs.protocol.LocatedBlockgetAdditionalDatanode(String src, long fileId, org.apache.hadoop.hdfs.protocol.ExtendedBlock blk, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] existings, String[] existingStorageIDs, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] excludes, int numAdditionalNodes, String clientName) org.apache.hadoop.hdfs.protocol.BatchedDirectoryListinggetBatchedListing(String[] srcs, byte[] startAfter, boolean needLocation) org.apache.hadoop.hdfs.protocol.LocatedBlocksgetBlockLocations(String src, long offset, long length) org.apache.hadoop.fs.ContentSummarygetContentSummary(String path) longorg.apache.hadoop.hdfs.security.token.block.DataEncryptionKeyorg.apache.hadoop.hdfs.protocol.DatanodeInfo[]getDatanodeReport(org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType type) org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport[]getDatanodeStorageReport(org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType type) org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier>getDelegationToken(org.apache.hadoop.io.Text renewer) org.apache.hadoop.hdfs.protocol.ECBlockGroupStatsorg.apache.hadoop.hdfs.protocol.ECTopologyVerifierResultgetECTopologyResultForPolicies(String... policyNames) org.apache.hadoop.hdfs.inotify.EventBatchListgetEditsFromTxid(long txid) org.apache.hadoop.fs.PathgetEnclosingRoot(String filename) org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo[]org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyorg.apache.hadoop.hdfs.protocol.EncryptionZonegetEZForPath(String src) org.apache.hadoop.hdfs.protocol.HdfsFileStatusgetFileInfo(String src) org.apache.hadoop.hdfs.protocol.HdfsFileStatusgetFileLinkInfo(String src) org.apache.hadoop.ha.HAServiceProtocol.HAServiceStategetLinkTarget(String path) org.apache.hadoop.hdfs.protocol.DirectoryListinggetListing(String src, byte[] startAfter, boolean needLocation) org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatusgetLocatedFileInfo(String src, boolean needBlockToken) longgetPreferredBlockSize(String filename) org.apache.hadoop.fs.QuotaUsagegetQuotaUsage(String path) org.apache.hadoop.hdfs.protocol.ReplicatedBlockStatsorg.apache.hadoop.fs.FsServerDefaultsorg.apache.hadoop.hdfs.protocol.DatanodeInfo[]org.apache.hadoop.hdfs.protocol.SnapshotDiffReportgetSnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot) org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListinggetSnapshotDiffReportListing(String snapshotRoot, String fromSnapshot, String toSnapshot, byte[] startPath, int index) org.apache.hadoop.hdfs.protocol.SnapshotStatus[]getSnapshotListing(String path) org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus[]long[]getStats()org.apache.hadoop.hdfs.protocol.BlockStoragePolicy[]org.apache.hadoop.hdfs.protocol.BlockStoragePolicygetStoragePolicy(String path) List<org.apache.hadoop.fs.XAttr>booleanisFileClosed(String src) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry>listCacheDirectives(long prevId, org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo filter) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.CachePoolEntry>listCachePools(String prevKey) org.apache.hadoop.hdfs.protocol.CorruptFileBlockslistCorruptFileBlocks(String path, String cookie) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.EncryptionZone>listEncryptionZones(long id) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.OpenFileEntry>listOpenFiles(long prevId, EnumSet<org.apache.hadoop.hdfs.protocol.OpenFilesIterator.OpenFilesType> openFilesTypes, String path) org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus>listReencryptionStatus(long id) List<org.apache.hadoop.fs.XAttr>listXAttrs(String src) voidbooleanvoidmodifyAclEntries(String src, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) voidmodifyCacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo directive, EnumSet<org.apache.hadoop.fs.CacheFlag> flags) voidmodifyCachePool(org.apache.hadoop.hdfs.protocol.CachePoolInfo req) voidmsync()booleanrecoverLease(String src, String clientName) voidreencryptEncryptionZone(String zone, org.apache.hadoop.hdfs.protocol.HdfsConstants.ReencryptAction action) voidvoidvoidremoveAclEntries(String src, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) voidremoveCacheDirective(long id) voidremoveCachePool(String cachePoolName) voidremoveDefaultAcl(String src) voidremoveErasureCodingPolicy(String ecPolicyName) voidremoveXAttr(String src, org.apache.hadoop.fs.XAttr xAttr) booleanvoidvoidrenameSnapshot(String snapshotRoot, String snapshotOldName, String snapshotNewName) longrenewDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) voidrenewLease(String clientName, List<String> namespaces) voidreportBadBlocks(org.apache.hadoop.hdfs.protocol.LocatedBlock[] blocks) booleanlongorg.apache.hadoop.hdfs.protocol.RollingUpgradeInforollingUpgrade(org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction action) voidbooleansaveNamespace(long timeWindow, long txGap) voidvoidsetBalancerBandwidth(long bandwidth) voidsetErasureCodingPolicy(String src, String ecPolicyName) voidvoidsetPermission(String src, org.apache.hadoop.fs.permission.FsPermission permission) voidsetQuota(String path, long namespaceQuota, long storagespaceQuota, org.apache.hadoop.fs.StorageType type) booleansetReplication(String src, short replication) booleansetSafeMode(org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction action, boolean isChecked) voidsetStoragePolicy(String src, String policyName) voidvoidsetXAttr(String src, org.apache.hadoop.fs.XAttr xAttr, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) booleanvoidvoidunsetStoragePolicy(String src) org.apache.hadoop.hdfs.protocol.LocatedBlockupdateBlockForPipeline(org.apache.hadoop.hdfs.protocol.ExtendedBlock block, String clientName) voidupdatePipeline(String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock oldBlock, org.apache.hadoop.hdfs.protocol.ExtendedBlock newBlock, org.apache.hadoop.hdfs.protocol.DatanodeID[] newNodes, String[] storageIDs) booleanMethods inherited from class org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
getUnderlyingProxyObject, isMethodSupported, listOpenFiles
-
Constructor Details
-
RouterClientProtocolTranslatorPB
public RouterClientProtocolTranslatorPB(org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolPB proxy)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB
-
getBlockLocations
public org.apache.hadoop.hdfs.protocol.LocatedBlocks getBlockLocations(String src, long offset, long length) throws IOException - Specified by:
getBlockLocationsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getBlockLocationsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getServerDefaults
- Specified by:
getServerDefaultsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getServerDefaultsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
create
public org.apache.hadoop.hdfs.protocol.HdfsFileStatus create(String src, org.apache.hadoop.fs.permission.FsPermission masked, String clientName, org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag, boolean createParent, short replication, long blockSize, org.apache.hadoop.crypto.CryptoProtocolVersion[] supportedVersions, String ecPolicyName, String storagePolicy) throws IOException - Specified by:
createin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
createin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
truncatein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
append
public org.apache.hadoop.hdfs.protocol.LastBlockWithStatus append(String src, String clientName, org.apache.hadoop.io.EnumSetWritable<org.apache.hadoop.fs.CreateFlag> flag) throws IOException - Specified by:
appendin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
appendin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setReplication
- Specified by:
setReplicationin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setReplicationin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setPermission
public void setPermission(String src, org.apache.hadoop.fs.permission.FsPermission permission) throws IOException - Specified by:
setPermissionin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setPermissionin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setOwner
- Specified by:
setOwnerin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setOwnerin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
abandonBlock
public void abandonBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock b, long fileId, String src, String holder) throws IOException - Specified by:
abandonBlockin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
abandonBlockin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
addBlock
public org.apache.hadoop.hdfs.protocol.LocatedBlock addBlock(String src, String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock previous, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] excludeNodes, long fileId, String[] favoredNodes, EnumSet<org.apache.hadoop.hdfs.AddBlockFlag> addBlockFlags) throws IOException - Specified by:
addBlockin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
addBlockin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getAdditionalDatanode
public org.apache.hadoop.hdfs.protocol.LocatedBlock getAdditionalDatanode(String src, long fileId, org.apache.hadoop.hdfs.protocol.ExtendedBlock blk, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] existings, String[] existingStorageIDs, org.apache.hadoop.hdfs.protocol.DatanodeInfo[] excludes, int numAdditionalNodes, String clientName) throws IOException - Specified by:
getAdditionalDatanodein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getAdditionalDatanodein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
complete
public boolean complete(String src, String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock last, long fileId) throws IOException - Specified by:
completein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
completein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
reportBadBlocks
public void reportBadBlocks(org.apache.hadoop.hdfs.protocol.LocatedBlock[] blocks) throws IOException - Specified by:
reportBadBlocksin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
reportBadBlocksin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
rename
- Specified by:
renamein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
renamein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
rename2
public void rename2(String src, String dst, org.apache.hadoop.fs.Options.Rename... options) throws IOException - Specified by:
rename2in interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
rename2in classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
concat
- Specified by:
concatin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
concatin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
delete
- Specified by:
deletein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
deletein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
mkdirs
public boolean mkdirs(String src, org.apache.hadoop.fs.permission.FsPermission masked, boolean createParent) throws IOException - Specified by:
mkdirsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
mkdirsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getListing
public org.apache.hadoop.hdfs.protocol.DirectoryListing getListing(String src, byte[] startAfter, boolean needLocation) throws IOException - Specified by:
getListingin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getListingin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getBatchedListing
public org.apache.hadoop.hdfs.protocol.BatchedDirectoryListing getBatchedListing(String[] srcs, byte[] startAfter, boolean needLocation) throws IOException - Specified by:
getBatchedListingin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getBatchedListingin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
renewLease
- Specified by:
renewLeasein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
renewLeasein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
recoverLease
- Specified by:
recoverLeasein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
recoverLeasein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getStats
- Specified by:
getStatsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getStatsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getReplicatedBlockStats
public org.apache.hadoop.hdfs.protocol.ReplicatedBlockStats getReplicatedBlockStats() throws IOException- Specified by:
getReplicatedBlockStatsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getReplicatedBlockStatsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getECBlockGroupStats
- Specified by:
getECBlockGroupStatsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getECBlockGroupStatsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getDatanodeReport
public org.apache.hadoop.hdfs.protocol.DatanodeInfo[] getDatanodeReport(org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType type) throws IOException - Specified by:
getDatanodeReportin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getDatanodeReportin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getDatanodeStorageReport
public org.apache.hadoop.hdfs.server.protocol.DatanodeStorageReport[] getDatanodeStorageReport(org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType type) throws IOException - Specified by:
getDatanodeStorageReportin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getDatanodeStorageReportin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getPreferredBlockSize
- Specified by:
getPreferredBlockSizein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getPreferredBlockSizein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setSafeMode
public boolean setSafeMode(org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction action, boolean isChecked) throws IOException - Specified by:
setSafeModein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setSafeModein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
saveNamespace
- Specified by:
saveNamespacein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
saveNamespacein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
rollEdits
- Specified by:
rollEditsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
rollEditsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
restoreFailedStorage
- Specified by:
restoreFailedStoragein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
restoreFailedStoragein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
refreshNodes
- Specified by:
refreshNodesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
refreshNodesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
finalizeUpgrade
- Specified by:
finalizeUpgradein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
finalizeUpgradein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
upgradeStatus
- Specified by:
upgradeStatusin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
upgradeStatusin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
rollingUpgrade
public org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo rollingUpgrade(org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction action) throws IOException - Specified by:
rollingUpgradein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
rollingUpgradein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listCorruptFileBlocks
public org.apache.hadoop.hdfs.protocol.CorruptFileBlocks listCorruptFileBlocks(String path, String cookie) throws IOException - Specified by:
listCorruptFileBlocksin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listCorruptFileBlocksin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
metaSave
- Specified by:
metaSavein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
metaSavein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getFileInfo
- Specified by:
getFileInfoin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getFileInfoin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getLocatedFileInfo
public org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus getLocatedFileInfo(String src, boolean needBlockToken) throws IOException - Specified by:
getLocatedFileInfoin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getLocatedFileInfoin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getFileLinkInfo
public org.apache.hadoop.hdfs.protocol.HdfsFileStatus getFileLinkInfo(String src) throws IOException - Specified by:
getFileLinkInfoin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getFileLinkInfoin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getContentSummary
- Specified by:
getContentSummaryin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getContentSummaryin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setQuota
public void setQuota(String path, long namespaceQuota, long storagespaceQuota, org.apache.hadoop.fs.StorageType type) throws IOException - Specified by:
setQuotain interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setQuotain classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
fsync
- Specified by:
fsyncin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
fsyncin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setTimes
- Specified by:
setTimesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setTimesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
createSymlink
public void createSymlink(String target, String link, org.apache.hadoop.fs.permission.FsPermission dirPerm, boolean createParent) throws IOException - Specified by:
createSymlinkin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
createSymlinkin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getLinkTarget
- Specified by:
getLinkTargetin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getLinkTargetin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
updateBlockForPipeline
public org.apache.hadoop.hdfs.protocol.LocatedBlock updateBlockForPipeline(org.apache.hadoop.hdfs.protocol.ExtendedBlock block, String clientName) throws IOException - Specified by:
updateBlockForPipelinein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
updateBlockForPipelinein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
updatePipeline
public void updatePipeline(String clientName, org.apache.hadoop.hdfs.protocol.ExtendedBlock oldBlock, org.apache.hadoop.hdfs.protocol.ExtendedBlock newBlock, org.apache.hadoop.hdfs.protocol.DatanodeID[] newNodes, String[] storageIDs) throws IOException - Specified by:
updatePipelinein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
updatePipelinein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getDelegationToken
public org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> getDelegationToken(org.apache.hadoop.io.Text renewer) throws IOException - Specified by:
getDelegationTokenin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getDelegationTokenin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
renewDelegationToken
public long renewDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) throws IOException - Specified by:
renewDelegationTokenin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
renewDelegationTokenin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
cancelDelegationToken
public void cancelDelegationToken(org.apache.hadoop.security.token.Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier> token) throws IOException - Specified by:
cancelDelegationTokenin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
cancelDelegationTokenin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setBalancerBandwidth
- Specified by:
setBalancerBandwidthin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setBalancerBandwidthin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getDataEncryptionKey
public org.apache.hadoop.hdfs.security.token.block.DataEncryptionKey getDataEncryptionKey() throws IOException- Specified by:
getDataEncryptionKeyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getDataEncryptionKeyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
isFileClosed
- Specified by:
isFileClosedin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
isFileClosedin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
createSnapshot
- Specified by:
createSnapshotin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
createSnapshotin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
deleteSnapshot
- Specified by:
deleteSnapshotin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
deleteSnapshotin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
allowSnapshot
- Specified by:
allowSnapshotin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
allowSnapshotin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
disallowSnapshot
- Specified by:
disallowSnapshotin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
disallowSnapshotin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
renameSnapshot
public void renameSnapshot(String snapshotRoot, String snapshotOldName, String snapshotNewName) throws IOException - Specified by:
renameSnapshotin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
renameSnapshotin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getSnapshottableDirListing
public org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus[] getSnapshottableDirListing() throws IOException- Specified by:
getSnapshottableDirListingin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getSnapshottableDirListingin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getSnapshotListing
public org.apache.hadoop.hdfs.protocol.SnapshotStatus[] getSnapshotListing(String path) throws IOException - Specified by:
getSnapshotListingin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getSnapshotListingin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getSnapshotDiffReport
public org.apache.hadoop.hdfs.protocol.SnapshotDiffReport getSnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot) throws IOException - Specified by:
getSnapshotDiffReportin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getSnapshotDiffReportin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getSnapshotDiffReportListing
public org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing getSnapshotDiffReportListing(String snapshotRoot, String fromSnapshot, String toSnapshot, byte[] startPath, int index) throws IOException - Specified by:
getSnapshotDiffReportListingin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getSnapshotDiffReportListingin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
addCacheDirective
public long addCacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo directive, EnumSet<org.apache.hadoop.fs.CacheFlag> flags) throws IOException - Specified by:
addCacheDirectivein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
addCacheDirectivein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
modifyCacheDirective
public void modifyCacheDirective(org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo directive, EnumSet<org.apache.hadoop.fs.CacheFlag> flags) throws IOException - Specified by:
modifyCacheDirectivein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
modifyCacheDirectivein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeCacheDirective
- Specified by:
removeCacheDirectivein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeCacheDirectivein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listCacheDirectives
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry> listCacheDirectives(long prevId, org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo filter) throws IOException - Specified by:
listCacheDirectivesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listCacheDirectivesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
addCachePool
- Specified by:
addCachePoolin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
addCachePoolin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
modifyCachePool
- Specified by:
modifyCachePoolin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
modifyCachePoolin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeCachePool
- Specified by:
removeCachePoolin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeCachePoolin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listCachePools
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.CachePoolEntry> listCachePools(String prevKey) throws IOException - Specified by:
listCachePoolsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listCachePoolsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
modifyAclEntries
public void modifyAclEntries(String src, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Specified by:
modifyAclEntriesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
modifyAclEntriesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeAclEntries
public void removeAclEntries(String src, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Specified by:
removeAclEntriesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeAclEntriesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeDefaultAcl
- Specified by:
removeDefaultAclin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeDefaultAclin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeAcl
- Specified by:
removeAclin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeAclin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setAcl
public void setAcl(String src, List<org.apache.hadoop.fs.permission.AclEntry> aclSpec) throws IOException - Specified by:
setAclin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setAclin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getAclStatus
- Specified by:
getAclStatusin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getAclStatusin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
createEncryptionZone
- Specified by:
createEncryptionZonein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
createEncryptionZonein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getEZForPath
- Specified by:
getEZForPathin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getEZForPathin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listEncryptionZones
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.EncryptionZone> listEncryptionZones(long id) throws IOException - Specified by:
listEncryptionZonesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listEncryptionZonesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setErasureCodingPolicy
- Specified by:
setErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
unsetErasureCodingPolicy
- Specified by:
unsetErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
unsetErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getECTopologyResultForPolicies
public org.apache.hadoop.hdfs.protocol.ECTopologyVerifierResult getECTopologyResultForPolicies(String... policyNames) throws IOException - Specified by:
getECTopologyResultForPoliciesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getECTopologyResultForPoliciesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
reencryptEncryptionZone
public void reencryptEncryptionZone(String zone, org.apache.hadoop.hdfs.protocol.HdfsConstants.ReencryptAction action) throws IOException - Specified by:
reencryptEncryptionZonein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
reencryptEncryptionZonein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listReencryptionStatus
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus> listReencryptionStatus(long id) throws IOException - Specified by:
listReencryptionStatusin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listReencryptionStatusin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setXAttr
public void setXAttr(String src, org.apache.hadoop.fs.XAttr xAttr, EnumSet<org.apache.hadoop.fs.XAttrSetFlag> flag) throws IOException - Specified by:
setXAttrin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setXAttrin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getXAttrs
public List<org.apache.hadoop.fs.XAttr> getXAttrs(String src, List<org.apache.hadoop.fs.XAttr> xAttrs) throws IOException - Specified by:
getXAttrsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getXAttrsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listXAttrs
- Specified by:
listXAttrsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listXAttrsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeXAttr
- Specified by:
removeXAttrin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeXAttrin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
checkAccess
public void checkAccess(String path, org.apache.hadoop.fs.permission.FsAction mode) throws IOException - Specified by:
checkAccessin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
checkAccessin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
setStoragePolicy
- Specified by:
setStoragePolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
setStoragePolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
unsetStoragePolicy
- Specified by:
unsetStoragePolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
unsetStoragePolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getStoragePolicy
public org.apache.hadoop.hdfs.protocol.BlockStoragePolicy getStoragePolicy(String path) throws IOException - Specified by:
getStoragePolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getStoragePolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getStoragePolicies
- Specified by:
getStoragePoliciesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getStoragePoliciesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getCurrentEditLogTxid
- Specified by:
getCurrentEditLogTxidin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getCurrentEditLogTxidin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getEditsFromTxid
- Specified by:
getEditsFromTxidin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getEditsFromTxidin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
addErasureCodingPolicies
public org.apache.hadoop.hdfs.protocol.AddErasureCodingPolicyResponse[] addErasureCodingPolicies(org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy[] policies) throws IOException - Specified by:
addErasureCodingPoliciesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
addErasureCodingPoliciesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
removeErasureCodingPolicy
- Specified by:
removeErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
removeErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
enableErasureCodingPolicy
- Specified by:
enableErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
enableErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
disableErasureCodingPolicy
- Specified by:
disableErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
disableErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getErasureCodingPolicies
public org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyInfo[] getErasureCodingPolicies() throws IOException- Specified by:
getErasureCodingPoliciesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getErasureCodingPoliciesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getErasureCodingCodecs
- Specified by:
getErasureCodingCodecsin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getErasureCodingCodecsin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getErasureCodingPolicy
public org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy getErasureCodingPolicy(String src) throws IOException - Specified by:
getErasureCodingPolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getErasureCodingPolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getQuotaUsage
- Specified by:
getQuotaUsagein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getQuotaUsagein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
listOpenFiles
public org.apache.hadoop.fs.BatchedRemoteIterator.BatchedEntries<org.apache.hadoop.hdfs.protocol.OpenFileEntry> listOpenFiles(long prevId, EnumSet<org.apache.hadoop.hdfs.protocol.OpenFilesIterator.OpenFilesType> openFilesTypes, String path) throws IOException - Specified by:
listOpenFilesin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
listOpenFilesin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
msync
- Specified by:
msyncin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
msyncin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
satisfyStoragePolicy
- Specified by:
satisfyStoragePolicyin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
satisfyStoragePolicyin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getSlowDatanodeReport
- Specified by:
getSlowDatanodeReportin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getSlowDatanodeReportin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getHAServiceState
- Specified by:
getHAServiceStatein interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getHAServiceStatein classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-
getEnclosingRoot
- Specified by:
getEnclosingRootin interfaceorg.apache.hadoop.hdfs.protocol.ClientProtocol- Overrides:
getEnclosingRootin classorg.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB- Throws:
IOException
-