congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NamenodeProtocol.getNextSPSPath
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-hdfs

@Override
public Long getNextSPSPath() {
 try {
  return nnc.getNNProtocolConnection().getNextSPSPath();
 } catch (IOException e) {
  LOG.warn("Exception while getting next sps path id from Namenode.", e);
  return null;
 }
}
origin: org.apache.hadoop/hadoop-hdfs

 @Override
 public GetNextSPSPathResponseProto getNextSPSPath(
   RpcController controller, GetNextSPSPathRequestProto request)
     throws ServiceException {
  try {
   Long nextSPSPath = impl.getNextSPSPath();
   if (nextSPSPath == null) {
    return GetNextSPSPathResponseProto.newBuilder().build();
   }
   return GetNextSPSPathResponseProto.newBuilder().setSpsPath(nextSPSPath)
     .build();
  } catch (IOException e) {
   throw new ServiceException(e);
  }
 }
}
org.apache.hadoop.hdfs.server.protocolNamenodeProtocolgetNextSPSPath

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
  • registerSubordinateNamenode
    Register a subordinate name-node like backup node.
  • startCheckpoint
    A request to the active name-node to start a checkpoint. The name-node should decide whether to admi
  • registerSubordinateNamenode,
  • startCheckpoint,
  • getEditLogSize,
  • rollFsImage,
  • isRollingUpgrade

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now