ClientDatanodeProtocolTranslatorPB@Private
@Evolving
public interface ClientDatanodeProtocol
| Modifier and Type | Field | Description |
|---|---|---|
static long |
versionID |
Until version 9, this class ClientDatanodeProtocol served as both
the client interface to the DN AND the RPC protocol used to
communicate with the NN.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
cancelDiskBalancePlan(java.lang.String planID) |
Cancel an executing plan.
|
void |
deleteBlockPool(java.lang.String bpid,
boolean force) |
Delete the block pool directory.
|
void |
evictWriters() |
Evict clients that are writing to a datanode.
|
long |
getBalancerBandwidth() |
Get current value of the balancer bandwidth in bytes per second.
|
BlockLocalPathInfo |
getBlockLocalPathInfo(ExtendedBlock block,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> token) |
Retrieves the path names of the block file and metadata file stored on the
local file system.
|
DatanodeLocalInfo |
getDatanodeInfo() |
Obtains datanode info
|
java.lang.String |
getDiskBalancerSetting(java.lang.String key) |
Gets a run-time configuration value from running diskbalancer instance.
|
org.apache.hadoop.conf.ReconfigurationTaskStatus |
getReconfigurationStatus() |
Get the status of the previously issued reconfig task.
|
long |
getReplicaVisibleLength(ExtendedBlock b) |
Return the visible length of a replica.
|
java.util.List<DatanodeVolumeInfo> |
getVolumeReport() |
Get volume report of datanode.
|
java.util.List<java.lang.String> |
listReconfigurableProperties() |
Get a list of allowed properties for reconfiguration.
|
DiskBalancerWorkStatus |
queryDiskBalancerPlan() |
Gets the status of an executing diskbalancer Plan.
|
void |
refreshNamenodes() |
Refresh the list of federated namenodes from updated configuration
Adds new namenodes and stops the deleted namenodes.
|
void |
shutdownDatanode(boolean forUpgrade) |
Shuts down a datanode.
|
void |
startReconfiguration() |
Asynchronously reload configuration on disk and apply changes.
|
void |
submitDiskBalancerPlan(java.lang.String planID,
long planVersion,
java.lang.String planFile,
java.lang.String planData,
boolean skipDateCheck) |
Submit a disk balancer plan for execution.
|
void |
triggerBlockReport(BlockReportOptions options) |
Trigger a new block report.
|
static final long versionID
long getReplicaVisibleLength(ExtendedBlock b) throws java.io.IOException
java.io.IOExceptionvoid refreshNamenodes()
throws java.io.IOException
java.io.IOException - on errorvoid deleteBlockPool(java.lang.String bpid,
boolean force)
throws java.io.IOException
bpid - Blockpool id to be deleted.force - If false blockpool directory is deleted only if it is empty
i.e. if it doesn't contain any block files, otherwise it is
deleted along with its contents.java.io.IOExceptionBlockLocalPathInfo getBlockLocalPathInfo(ExtendedBlock block, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> token) throws java.io.IOException
block - the specified block on the local datanodetoken - the block access token.java.io.IOException - on errorvoid shutdownDatanode(boolean forUpgrade)
throws java.io.IOException
forUpgrade - If true, data node does extra prep work before shutting
down. The work includes advising clients to wait and saving
certain states for quick restart. This should only be used when
the stored data will remain the same during upgrade/restart.java.io.IOExceptionvoid evictWriters()
throws java.io.IOException
java.io.IOExceptionDatanodeLocalInfo getDatanodeInfo() throws java.io.IOException
java.io.IOExceptionvoid startReconfiguration()
throws java.io.IOException
java.io.IOExceptionorg.apache.hadoop.conf.ReconfigurationTaskStatus getReconfigurationStatus()
throws java.io.IOException
java.io.IOExceptionReconfigurationTaskStatusjava.util.List<java.lang.String> listReconfigurableProperties()
throws java.io.IOException
java.io.IOExceptionvoid triggerBlockReport(BlockReportOptions options) throws java.io.IOException
java.io.IOExceptionlong getBalancerBandwidth()
throws java.io.IOException
java.io.IOExceptionjava.util.List<DatanodeVolumeInfo> getVolumeReport() throws java.io.IOException
java.io.IOExceptionvoid submitDiskBalancerPlan(java.lang.String planID,
long planVersion,
java.lang.String planFile,
java.lang.String planData,
boolean skipDateCheck)
throws java.io.IOException
java.io.IOExceptionvoid cancelDiskBalancePlan(java.lang.String planID)
throws java.io.IOException
planID - - A SHA-1 hash of the plan string.java.io.IOExceptionDiskBalancerWorkStatus queryDiskBalancerPlan() throws java.io.IOException
java.io.IOExceptionjava.lang.String getDiskBalancerSetting(java.lang.String key)
throws java.io.IOException
key - runtime configuration keyjava.io.IOException - - Throws if there is no such keyCopyright © 2008–2025 Apache Software Foundation. All rights reserved.