Tabnine Logo
NamenodeProtocol.getTransactionID
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-hdfs

private long countUncheckpointedTxns() throws IOException {
 long curTxId = namenode.getTransactionID();
 long uncheckpointedTxns = curTxId -
  checkpointImage.getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: org.apache.hadoop/hadoop-hdfs

private long countUncheckpointedTxns() throws IOException {
 long curTxId = getRemoteNamenodeProxy().getTransactionID();
 long uncheckpointedTxns = curTxId -
  getFSImage().getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: org.apache.hadoop/hadoop-hdfs

@Override
public GetTransactionIdResponseProto getTransactionId(RpcController unused,
  GetTransactionIdRequestProto request) throws ServiceException {
 long txid;
 try {
  txid = impl.getTransactionID();
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return GetTransactionIdResponseProto.newBuilder().setTxId(txid).build();
}

origin: org.apache.hadoop/hadoop-hdfs

final long curTxId = proxy.getTransactionID();
FSImage image = new FSImage(conf);
try {
origin: io.prestosql.hadoop/hadoop-apache

private long countUncheckpointedTxns() throws IOException {
 long curTxId = namenode.getTransactionID();
 long uncheckpointedTxns = curTxId -
  checkpointImage.getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: ch.cern.hadoop/hadoop-hdfs

private long countUncheckpointedTxns() throws IOException {
 long curTxId = namenode.getTransactionID();
 long uncheckpointedTxns = curTxId -
  checkpointImage.getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: io.prestosql.hadoop/hadoop-apache

@Override
public GetTransactionIdResponseProto getTransactionId(RpcController unused,
  GetTransactionIdRequestProto request) throws ServiceException {
 long txid;
 try {
  txid = impl.getTransactionID();
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return GetTransactionIdResponseProto.newBuilder().setTxId(txid).build();
}

origin: ch.cern.hadoop/hadoop-hdfs

private long countUncheckpointedTxns() throws IOException {
 long curTxId = getRemoteNamenodeProxy().getTransactionID();
 long uncheckpointedTxns = curTxId -
  getFSImage().getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: ch.cern.hadoop/hadoop-hdfs

@Override
public GetTransactionIdResponseProto getTransactionId(RpcController unused,
  GetTransactionIdRequestProto request) throws ServiceException {
 long txid;
 try {
  txid = impl.getTransactionID();
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return GetTransactionIdResponseProto.newBuilder().setTxId(txid).build();
}

origin: io.prestosql.hadoop/hadoop-apache

private long countUncheckpointedTxns() throws IOException {
 long curTxId = getRemoteNamenodeProxy().getTransactionID();
 long uncheckpointedTxns = curTxId -
  getFSImage().getStorage().getMostRecentCheckpointTxId();
 assert uncheckpointedTxns >= 0;
 return uncheckpointedTxns;
}
origin: io.prestosql.hadoop/hadoop-apache

final long curTxId = proxy.getTransactionID();
FSImage image = new FSImage(conf);
try {
origin: ch.cern.hadoop/hadoop-hdfs

final long curTxId = proxy.getTransactionID();
FSImage image = new FSImage(conf);
try {
org.apache.hadoop.hdfs.server.protocolNamenodeProtocolgetTransactionID

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.
  • 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
  • getEditLogSize
    Get the size of the current edit log (in bytes).
  • startCheckpoint,
  • getEditLogSize,
  • rollFsImage,
  • getNextSPSPath,
  • isRollingUpgrade

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
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