BalancerProtocols, NamenodeProtocolsNamenodeProtocolTranslatorPB, NameNodeRpcServer@Private
public interface NamenodeProtocol
| Modifier and Type | Field | Description |
|---|---|---|
static int |
ACT_CHECKPOINT |
|
static int |
ACT_SHUTDOWN |
|
static int |
ACT_UNKNOWN |
|
static int |
FATAL |
|
static int |
NOTIFY |
|
static long |
versionID |
Until version 6L, this class served as both
the client interface to the NN AND the RPC protocol used to
communicate with the NN.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
endCheckpoint(NamenodeRegistration registration,
CheckpointSignature sig) |
A request to the active name-node to finalize
previously started checkpoint.
|
void |
errorReport(NamenodeRegistration registration,
int errorCode,
java.lang.String msg) |
Report to the active name-node an error occurred on a subordinate node.
|
ExportedBlockKeys |
getBlockKeys() |
Get the current block keys
|
BlocksWithLocations |
getBlocks(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanode,
long size,
long minBlockSize,
long hotBlockTimeInterval,
org.apache.hadoop.fs.StorageType storageType) |
Get a list of blocks belonging to
datanode
whose total size equals size. |
RemoteEditLogManifest |
getEditLogManifest(long sinceTxId) |
Return a structure containing details about all edit logs
available to be fetched from the NameNode.
|
long |
getMostRecentCheckpointTxId() |
Get the transaction ID of the most recent checkpoint.
|
java.lang.Long |
getNextSPSPath() |
|
long |
getTransactionID() |
|
boolean |
isRollingUpgrade() |
return whether the Namenode is rolling upgrade in progress (true) or
not (false).
|
boolean |
isUpgradeFinalized() |
|
NamenodeRegistration |
registerSubordinateNamenode(NamenodeRegistration registration) |
Register a subordinate name-node like backup node.
|
CheckpointSignature |
rollEditLog() |
Closes the current edit log and opens a new one.
|
NamenodeCommand |
startCheckpoint(NamenodeRegistration registration) |
A request to the active name-node to start a checkpoint.
|
NamespaceInfo |
versionRequest() |
Request name-node version and storage information.
|
static final long versionID
static final int NOTIFY
static final int FATAL
static final int ACT_UNKNOWN
static final int ACT_SHUTDOWN
static final int ACT_CHECKPOINT
BlocksWithLocations getBlocks(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanode, long size, long minBlockSize, long hotBlockTimeInterval, org.apache.hadoop.fs.StorageType storageType) throws java.io.IOException
datanode
whose total size equals size.datanode - a data nodesize - requested sizeminBlockSize - each block should be of this minimum Block SizehotBlockTimeInterval - prefer to get blocks which are belong to
the cold files accessed before the time intervalstorageType - the given storage type StorageTypejava.io.IOException - if size is less than or equal to 0 or
datanode does not existBalancerExportedBlockKeys getBlockKeys() throws java.io.IOException
java.io.IOExceptionlong getTransactionID()
throws java.io.IOException
java.io.IOExceptionlong getMostRecentCheckpointTxId()
throws java.io.IOException
java.io.IOExceptionCheckpointSignature rollEditLog() throws java.io.IOException
java.io.IOExceptionNamespaceInfo versionRequest() throws java.io.IOException
NamespaceInfo identifying versions and storage information
of the name-nodejava.io.IOExceptionvoid errorReport(NamenodeRegistration registration, int errorCode, java.lang.String msg) throws java.io.IOException
registration - requesting node.errorCode - indicates the errormsg - free text description of the errorjava.io.IOExceptionNamenodeRegistration registerSubordinateNamenode(NamenodeRegistration registration) throws java.io.IOException
NamenodeRegistration of the node,
which this node has just registered with.java.io.IOExceptionNamenodeCommand startCheckpoint(NamenodeRegistration registration) throws java.io.IOException
registration - the requesting nodeCheckpointCommand if checkpoint is allowed.java.io.IOExceptionCheckpointCommand,
NamenodeCommand,
ACT_SHUTDOWNvoid endCheckpoint(NamenodeRegistration registration, CheckpointSignature sig) throws java.io.IOException
registration - the requesting nodesig - CheckpointSignature which identifies the checkpoint.java.io.IOExceptionRemoteEditLogManifest getEditLogManifest(long sinceTxId) throws java.io.IOException
sinceTxId - return only logs that contain transactions >=
sinceTxIdjava.io.IOExceptionboolean isUpgradeFinalized()
throws java.io.IOException
java.io.IOExceptionboolean isRollingUpgrade()
throws java.io.IOException
java.io.IOExceptionjava.lang.Long getNextSPSPath()
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.