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

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

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

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Dynamically add new volumes to the existing volumes that this DN manages.
 *
 * @param ref       a reference to the new FsVolumeImpl instance.
 */
void addVolume(FsVolumeReference ref) {
 FsVolumeImpl volume = (FsVolumeImpl) ref.getVolume();
 volumes.add(volume);
 if (blockScanner != null) {
  blockScanner.addVolumeScanner(ref);
 } else {
  // If the volume is not put into a volume scanner, it does not need to
  // hold the reference.
  IOUtils.cleanup(null, ref);
 }
 // If the volume is used to replace a failed volume, it needs to reset the
 // volume failure info for this volume.
 removeVolumeFailureInfo(volume.getStorageLocation());
 FsDatasetImpl.LOG.info("Added new volume: " +
   volume.getStorageID());
}
origin: ch.cern.hadoop/hadoop-hdfs

 blockScanner.addVolumeScanner(ref);
} else {
origin: io.prestosql.hadoop/hadoop-apache

 blockScanner.addVolumeScanner(ref);
} else {
org.apache.hadoop.hdfs.server.datanodeBlockScanneraddVolumeScanner

Javadoc

Set up a scanner for the given block pool and volume.

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
  • disableBlockPoolId
    Disable scanning a given block pool id.
  • 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
  • Github Copilot alternatives
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