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

How to use
createRbwFile
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.createRbwFile (Showing top 4 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

/**
 * RBW files. They get moved to the finalized block directory when
 * the block is finalized.
 */
File createRbwFile(String bpid, Block b) throws IOException {
 checkReference();
 reserveSpaceForReplica(b.getNumBytes());
 try {
  return getBlockPoolSlice(bpid).createRbwFile(b);
 } catch (IOException exception) {
  releaseReservedSpace(b.getNumBytes());
  throw exception;
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * RBW files. They get moved to the finalized block directory when
 * the block is finalized.
 */
File createRbwFile(String bpid, Block b) throws IOException {
 checkReference();
 reserveSpaceForRbw(b.getNumBytes());
 try {
  return getBlockPoolSlice(bpid).createRbwFile(b);
 } catch (IOException exception) {
  releaseReservedSpace(b.getNumBytes());
  throw exception;
 }
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * RBW files. They get moved to the finalized block directory when
 * the block is finalized.
 */
File createRbwFile(String bpid, Block b) throws IOException {
 checkReference();
 reserveSpaceForRbw(b.getNumBytes());
 try {
  return getBlockPoolSlice(bpid).createRbwFile(b);
 } catch (IOException exception) {
  releaseReservedSpace(b.getNumBytes());
  throw exception;
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

Mockito.when(blockPoolSlice.createRbwFile((Block) Mockito.any()))
  .thenThrow(new IOException("Synthetic IO Exception Throgh MOCK"));
org.apache.hadoop.hdfs.server.datanode.fsdataset.implBlockPoolSlicecreateRbwFile

Javadoc

RBW files. They get moved to the finalized block directory when the block is finalized.

Popular methods of BlockPoolSlice

  • getFinalizedDir
  • getLazypersistDir
  • 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
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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