Codota Logo
NamenodeProtocol.registerSubordinateNamenode
Code IndexAdd Codota to your IDE (free)

How to use
registerSubordinateNamenode
method
in
org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol

Best Java code snippets using org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol.registerSubordinateNamenode (Showing top 6 results out of 315)

  • Common ways to obtain NamenodeProtocol
private void myMethod () {
NamenodeProtocol n =
  • Codota IconPB.NamenodeProtocolPB rpcProxy;new NamenodeProtocolTranslatorPB(rpcProxy)
  • Codota IconObject implementation;Map methodNameToPolicyMap;(NamenodeProtocol) RetryProxy.create(NamenodeProtocol.class, implementation, methodNameToPolicyMap)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

@Override
public RegisterResponseProto registerSubordinateNamenode(
  RpcController unused, RegisterRequestProto request)
  throws ServiceException {
 NamenodeRegistration reg;
 try {
  reg = impl.registerSubordinateNamenode(
    PBHelper.convert(request.getRegistration()));
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return RegisterResponseProto.newBuilder()
   .setRegistration(PBHelper.convert(reg)).build();
}
origin: org.apache.hadoop/hadoop-hdfs

while(!isStopRequested()) {
 try {
  nnReg = namenode.registerSubordinateNamenode(getRegistration());
  break;
 } catch(SocketTimeoutException e) {  // name-node is busy
origin: io.prestosql.hadoop/hadoop-apache

@Override
public RegisterResponseProto registerSubordinateNamenode(
  RpcController unused, RegisterRequestProto request)
  throws ServiceException {
 NamenodeRegistration reg;
 try {
  reg = impl.registerSubordinateNamenode(
    PBHelper.convert(request.getRegistration()));
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return RegisterResponseProto.newBuilder()
   .setRegistration(PBHelper.convert(reg)).build();
}
origin: ch.cern.hadoop/hadoop-hdfs

@Override
public RegisterResponseProto registerSubordinateNamenode(
  RpcController unused, RegisterRequestProto request)
  throws ServiceException {
 NamenodeRegistration reg;
 try {
  reg = impl.registerSubordinateNamenode(
    PBHelper.convert(request.getRegistration()));
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return RegisterResponseProto.newBuilder()
   .setRegistration(PBHelper.convert(reg)).build();
}
origin: ch.cern.hadoop/hadoop-hdfs

while(!isStopRequested()) {
 try {
  nnReg = namenode.registerSubordinateNamenode(getRegistration());
  break;
 } catch(SocketTimeoutException e) {  // name-node is busy
origin: io.prestosql.hadoop/hadoop-apache

while(!isStopRequested()) {
 try {
  nnReg = namenode.registerSubordinateNamenode(getRegistration());
  break;
 } catch(SocketTimeoutException e) {  // name-node is busy
org.apache.hadoop.hdfs.server.protocolNamenodeProtocolregisterSubordinateNamenode

Javadoc

Register a subordinate name-node like backup node.

Popular methods of NamenodeProtocol

  • getBlocks
    Get a list of blocks belonging to datanode whose total size equals size.
  • rollEditLog
    Closes the current edit log and opens a new one. The call fails if the file system is in SafeMode.
  • getBlockKeys
    Get the current block keys
  • getEditLogManifest
    Return a structure containing details about all edit logs available to be fetched from the NameNode.
  • versionRequest
    Request name-node version and storage information.
  • endCheckpoint
    A request to the active name-node to finalize previously started checkpoint.
  • errorReport
    Report to the active name-node an error occurred on a subordinate node. Depending on the error code
  • getMostRecentCheckpointTxId
    Get the transaction ID of the most recent checkpoint.
  • getTransactionID
  • isUpgradeFinalized
  • startCheckpoint
    A request to the active name-node to start a checkpoint. The name-node should decide whether to admi
  • getEditLogSize
    Get the size of the current edit log (in bytes).
  • startCheckpoint,
  • getEditLogSize,
  • rollFsImage,
  • getNextSPSPath,
  • isRollingUpgrade

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Path (java.nio.file)
  • ImageIO (javax.imageio)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now