Tabnine Logo
SaveNamespaceContext.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext
constructor

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext.<init> (Showing top 7 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Save FSimage in the legacy format. This is not for NN consumption,
 * but for tools like OIV.
 */
public void saveLegacyOIVImage(FSNamesystem source, String targetDir,
  Canceler canceler) throws IOException {
 FSImageCompression compression =
   FSImageCompression.createCompression(conf);
 long txid = getCorrectLastAppliedOrWrittenTxId();
 SaveNamespaceContext ctx = new SaveNamespaceContext(source, txid,
   canceler);
 FSImageFormat.Saver saver = new FSImageFormat.Saver(ctx);
 String imageFileName = NNStorage.getLegacyOIVImageFileName(txid);
 File imageFile = new File(targetDir, imageFileName);
 saver.save(imageFile, compression);
 archivalManager.purgeOldLegacyOIVImages(targetDir, txid);
}
origin: org.apache.hadoop/hadoop-hdfs

 canceler = new Canceler();
SaveNamespaceContext ctx = new SaveNamespaceContext(
  source, txid, canceler);
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Save FSimage in the legacy format. This is not for NN consumption,
 * but for tools like OIV.
 */
public void saveLegacyOIVImage(FSNamesystem source, String targetDir,
  Canceler canceler) throws IOException {
 FSImageCompression compression =
   FSImageCompression.createCompression(conf);
 long txid = getCorrectLastAppliedOrWrittenTxId();
 SaveNamespaceContext ctx = new SaveNamespaceContext(source, txid,
   canceler);
 FSImageFormat.Saver saver = new FSImageFormat.Saver(ctx);
 String imageFileName = NNStorage.getLegacyOIVImageFileName(txid);
 File imageFile = new File(targetDir, imageFileName);
 saver.save(imageFile, compression);
 archivalManager.purgeOldLegacyOIVImages(targetDir, txid);
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Save FSimage in the legacy format. This is not for NN consumption,
 * but for tools like OIV.
 */
public void saveLegacyOIVImage(FSNamesystem source, String targetDir,
  Canceler canceler) throws IOException {
 FSImageCompression compression =
   FSImageCompression.createCompression(conf);
 long txid = getCorrectLastAppliedOrWrittenTxId();
 SaveNamespaceContext ctx = new SaveNamespaceContext(source, txid,
   canceler);
 FSImageFormat.Saver saver = new FSImageFormat.Saver(ctx);
 String imageFileName = NNStorage.getLegacyOIVImageFileName(txid);
 File imageFile = new File(targetDir, imageFileName);
 saver.save(imageFile, compression);
 archivalManager.purgeOldLegacyOIVImages(targetDir, txid);
}
origin: io.prestosql.hadoop/hadoop-apache

 canceler = new Canceler();
SaveNamespaceContext ctx = new SaveNamespaceContext(
  source, txid, canceler);
origin: ch.cern.hadoop/hadoop-hdfs

 canceler = new Canceler();
SaveNamespaceContext ctx = new SaveNamespaceContext(
  source, txid, canceler);
origin: ch.cern.hadoop/hadoop-hdfs

/** Save the fsimage to a temp file */
private File saveFSImageToTempFile() throws IOException {
 SaveNamespaceContext context = new SaveNamespaceContext(fsn, txid,
   new Canceler());
 FSImageFormatProtobuf.Saver saver = new FSImageFormatProtobuf.Saver(context);
 FSImageCompression compression = FSImageCompression.createCompression(conf);
 File imageFile = getImageFile(testDir, txid);
 fsn.readLock();
 try {
  saver.save(imageFile, compression);
 } finally {
  fsn.readUnlock();
 }
 return imageFile;
}

org.apache.hadoop.hdfs.server.namenodeSaveNamespaceContext<init>

Popular methods of SaveNamespaceContext

  • checkCancelled
  • getErrorSDs
  • getSourceNamesystem
  • getTxId
  • reportErrorOnStorageDirectory
  • markComplete
  • cancel
    Requests that the current saveNamespace operation be canceled if it is still running.
  • clear
  • isCancelled
  • set

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
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