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

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

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

origin: org.apache.hadoop/hadoop-hdfs

/**
 * @return true if an upgrade is in progress, false if not.
 * @throws IOException
 */
public boolean isUpgrading() throws IOException {
 // fsimage upgrade
 final boolean isUpgrade = !namenode.isUpgradeFinalized();
 // rolling upgrade
 RollingUpgradeInfo info = fs.rollingUpgrade(
   HdfsConstants.RollingUpgradeAction.QUERY);
 final boolean isRollingUpgrade = (info != null && !info.isFinalized());
 return (isUpgrade || isRollingUpgrade);
}
origin: org.apache.hadoop/hadoop-hdfs

@Override
public IsUpgradeFinalizedResponseProto isUpgradeFinalized(
  RpcController controller, IsUpgradeFinalizedRequestProto request)
  throws ServiceException {
 boolean isUpgradeFinalized;
 try {
  isUpgradeFinalized = impl.isUpgradeFinalized();
 } catch (IOException e) {
  throw new ServiceException(e);
 }
 return IsUpgradeFinalizedResponseProto.newBuilder()
   .setIsUpgradeFinalized(isUpgradeFinalized).build();
}
origin: org.apache.hadoop/hadoop-hdfs

 isUpgradeFinalized = proxy.isUpgradeFinalized();
 break;
} catch (IOException ioe) {
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * @return true if an upgrade is in progress, false if not.
 * @throws IOException
 */
public boolean isUpgrading() throws IOException {
 // fsimage upgrade
 final boolean isUpgrade = !namenode.isUpgradeFinalized();
 // rolling upgrade
 RollingUpgradeInfo info = fs.rollingUpgrade(
   HdfsConstants.RollingUpgradeAction.QUERY);
 final boolean isRollingUpgrade = (info != null && !info.isFinalized());
 return (isUpgrade || isRollingUpgrade);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * @return true if an upgrade is in progress, false if not.
 * @throws IOException
 */
public boolean isUpgrading() throws IOException {
 // fsimage upgrade
 final boolean isUpgrade = !namenode.isUpgradeFinalized();
 // rolling upgrade
 RollingUpgradeInfo info = fs.rollingUpgrade(
   HdfsConstants.RollingUpgradeAction.QUERY);
 final boolean isRollingUpgrade = (info != null && !info.isFinalized());
 return (isUpgrade || isRollingUpgrade);
}
origin: io.prestosql.hadoop/hadoop-apache

 @Override
 public IsUpgradeFinalizedResponseProto isUpgradeFinalized(
   RpcController controller, IsUpgradeFinalizedRequestProto request)
   throws ServiceException {
  boolean isUpgradeFinalized;
  try {
   isUpgradeFinalized = impl.isUpgradeFinalized();
  } catch (IOException e) {
   throw new ServiceException(e);
  }
  return IsUpgradeFinalizedResponseProto.newBuilder()
    .setIsUpgradeFinalized(isUpgradeFinalized).build();
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

 @Override
 public IsUpgradeFinalizedResponseProto isUpgradeFinalized(
   RpcController controller, IsUpgradeFinalizedRequestProto request)
   throws ServiceException {
  boolean isUpgradeFinalized;
  try {
   isUpgradeFinalized = impl.isUpgradeFinalized();
  } catch (IOException e) {
   throw new ServiceException(e);
  }
  return IsUpgradeFinalizedResponseProto.newBuilder()
    .setIsUpgradeFinalized(isUpgradeFinalized).build();
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

try {
 nsInfo = proxy.versionRequest();
 isUpgradeFinalized = proxy.isUpgradeFinalized();
} catch (IOException ioe) {
 LOG.fatal("Unable to fetch namespace information from active NN at " +
origin: io.prestosql.hadoop/hadoop-apache

try {
 nsInfo = proxy.versionRequest();
 isUpgradeFinalized = proxy.isUpgradeFinalized();
} catch (IOException ioe) {
 LOG.fatal("Unable to fetch namespace information from active NN at " +
org.apache.hadoop.hdfs.server.protocolNamenodeProtocolisUpgradeFinalized

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
  • 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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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