Codota Logo
BlockPoolSlice.getLazypersistDir
Code IndexAdd Codota to your IDE (free)

How to use
getLazypersistDir
method
in
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.BlockPoolSlice

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.BlockPoolSlice.getLazypersistDir (Showing top 5 results out of 315)

  • Common ways to obtain BlockPoolSlice
private void myMethod () {
BlockPoolSlice b =
  • Codota IconFsVolumeImpl fsVolumeImpl;ExtendedBlock extendedBlock;fsVolumeImpl.getBlockPoolSlice(extendedBlock.getBlockPoolId())
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

protected File getLazyPersistDir(String bpid) throws IOException {
 return getBlockPoolSlice(bpid).getLazypersistDir();
}
origin: ch.cern.hadoop/hadoop-hdfs

File getLazyPersistDir(String bpid) throws IOException {
 return getBlockPoolSlice(bpid).getLazypersistDir();
}
origin: io.prestosql.hadoop/hadoop-apache

File getLazyPersistDir(String bpid) throws IOException {
 return getBlockPoolSlice(bpid).getLazypersistDir();
}
origin: ch.cern.hadoop/hadoop-hdfs

File lazyPersistDir = volume.getBlockPoolSlice(bpid).getLazypersistDir();
origin: ch.cern.hadoop/hadoop-hdfs

protected final boolean verifyDeletedBlocks(LocatedBlocks locatedBlocks)
  throws IOException, InterruptedException {
 LOG.info("Verifying replica has no saved copy after deletion.");
 triggerBlockReport();
 while(
  DataNodeTestUtils.getPendingAsyncDeletions(cluster.getDataNodes().get(0))
   > 0L){
  Thread.sleep(1000);
 }
 final String bpid = cluster.getNamesystem().getBlockPoolId();
 List<? extends FsVolumeSpi> volumes =
  cluster.getDataNodes().get(0).getFSDataset().getVolumes();
 // Make sure deleted replica does not have a copy on either finalized dir of
 // transient volume or finalized dir of non-transient volume
 for (FsVolumeSpi v : volumes) {
  FsVolumeImpl volume = (FsVolumeImpl) v;
  File targetDir = (v.isTransientStorage()) ?
    volume.getBlockPoolSlice(bpid).getFinalizedDir() :
    volume.getBlockPoolSlice(bpid).getLazypersistDir();
  if (verifyBlockDeletedFromDir(targetDir, locatedBlocks) == false) {
   return false;
  }
 }
 return true;
}
org.apache.hadoop.hdfs.server.datanode.fsdataset.implBlockPoolSlicegetLazypersistDir

Popular methods of BlockPoolSlice

  • createRbwFile
    RBW files. They get moved to the finalized block directory when the block is finalized.
  • getFinalizedDir
  • selectReplicaToDelete
  • <init>
    Create a blook pool slice
  • activateSavedReplica
    Move a persisted replica from lazypersist directory to a subdirectory under finalized.
  • addToReplicasMap
    Add replicas under the given directory to the volume map
  • checkDirs
  • createTmpFile
    Temporary files. They get moved to the finalized block directory when the block is finalized.
  • decDfsUsed
    Run DU on local drives. It must be synchronized from caller.
  • deleteReplica
  • getDfsUsed
  • getRbwDir
  • getDfsUsed,
  • getRbwDir,
  • getTmpDir,
  • getVolumeMap,
  • incDfsUsed,
  • loadDfsUsed,
  • moveLazyPersistReplicasToFinalized,
  • recoverTempUnlinkedBlock,
  • resolveDuplicateReplicas

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
  • setContentView (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now