Tabnine Logo
BlockScanner.disableBlockPoolId
Code IndexAdd Tabnine to your IDE (free)

How to use
disableBlockPoolId
method
in
org.apache.hadoop.hdfs.server.datanode.BlockScanner

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.BlockScanner.disableBlockPoolId (Showing top 3 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Remove the given block pool from the block scanner, dataset, and storage.
 */
void shutdownBlockPool(BPOfferService bpos) {
 blockPoolManager.remove(bpos);
 if (bpos.hasBlockPoolId()) {
  // Possible that this is shutting down before successfully
  // registering anywhere. If that's the case, we wouldn't have
  // a block pool id
  String bpId = bpos.getBlockPoolId();
  blockScanner.disableBlockPoolId(bpId);
  if (data != null) {
   data.shutdownBlockPool(bpId);
  }
  if (storage != null) {
   storage.removeBlockPoolStorage(bpId);
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Remove the given block pool from the block scanner, dataset, and storage.
 */
void shutdownBlockPool(BPOfferService bpos) {
 blockPoolManager.remove(bpos);
 if (bpos.hasBlockPoolId()) {
  // Possible that this is shutting down before successfully
  // registering anywhere. If that's the case, we wouldn't have
  // a block pool id
  String bpId = bpos.getBlockPoolId();
  blockScanner.disableBlockPoolId(bpId);
  if (data != null) {
   data.shutdownBlockPool(bpId);
  }
  if (storage != null) {
   storage.removeBlockPoolStorage(bpId);
  }
 }
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Remove the given block pool from the block scanner, dataset, and storage.
 */
void shutdownBlockPool(BPOfferService bpos) {
 blockPoolManager.remove(bpos);
 if (bpos.hasBlockPoolId()) {
  // Possible that this is shutting down before successfully
  // registering anywhere. If that's the case, we wouldn't have
  // a block pool id
  String bpId = bpos.getBlockPoolId();
  blockScanner.disableBlockPoolId(bpId);
  if (data != null) {
   data.shutdownBlockPool(bpId);
  }
  if (storage != null) {
   storage.removeBlockPoolStorage(bpId);
  }
 }
}
org.apache.hadoop.hdfs.server.datanodeBlockScannerdisableBlockPoolId

Javadoc

Disable scanning a given block pool id.

Popular methods of BlockScanner

  • <init>
  • isEnabled
    Returns true if the block scanner is enabled. If the block scanner is disabled, no volume scanners w
  • markSuspectBlock
    Mark a block as "suspect." This means that we should try to rescan it soon. Note that the VolumeScan
  • removeAllVolumeScanners
    Stops and removes all volume scanners. This function will block until all the volume scanners have s
  • addVolumeScanner
    Set up a scanner for the given block pool and volume.
  • enableBlockPoolId
    Enable scanning a given block pool id.
  • printStats
  • removeVolumeScanner
    Stops and removes a volume scanner. This function will block until the volume scanner has stopped.
  • getVolumeStats
  • setConf

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • 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