congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BlockPoolSlice.getTmpDir
Code IndexAdd Tabnine to your IDE (free)

How to use
getTmpDir
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.getTmpDir (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

protected File getTmpDir(String bpid) throws IOException {
 return getBlockPoolSlice(bpid).getTmpDir();
}
origin: org.apache.hadoop/hadoop-hdfs

private File[] copyReplicaWithNewBlockIdAndGS(
  ReplicaInfo replicaInfo, String bpid, long newBlkId, long newGS)
  throws IOException {
 String blockFileName = Block.BLOCK_FILE_PREFIX + newBlkId;
 FsVolumeImpl v = (FsVolumeImpl) replicaInfo.getVolume();
 final File tmpDir = v.getBlockPoolSlice(bpid).getTmpDir();
 final File destDir = DatanodeUtil.idToBlockDir(tmpDir, newBlkId);
 final File dstBlockFile = new File(destDir, blockFileName);
 final File dstMetaFile = FsDatasetUtil.getMetaFile(dstBlockFile, newGS);
 return FsDatasetImpl.copyBlockFiles(replicaInfo, dstMetaFile,
   dstBlockFile, true, DFSUtilClient.getSmallBufferSize(conf), conf);
}
origin: ch.cern.hadoop/hadoop-hdfs

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

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

private File[] copyReplicaWithNewBlockIdAndGS(
  ReplicaUnderRecovery replicaInfo, String bpid, long newBlkId, long newGS)
  throws IOException {
 String blockFileName = Block.BLOCK_FILE_PREFIX + newBlkId;
 FsVolumeImpl v = (FsVolumeImpl) replicaInfo.getVolume();
 final File tmpDir = v.getBlockPoolSlice(bpid).getTmpDir();
 final File destDir = DatanodeUtil.idToBlockDir(tmpDir, newBlkId);
 final File dstBlockFile = new File(destDir, blockFileName);
 final File dstMetaFile = FsDatasetUtil.getMetaFile(dstBlockFile, newGS);
 return copyBlockFiles(replicaInfo.getMetaFile(), replicaInfo.getBlockFile(),
   dstMetaFile, dstBlockFile, true);
}
origin: io.prestosql.hadoop/hadoop-apache

private File[] copyReplicaWithNewBlockIdAndGS(
  ReplicaUnderRecovery replicaInfo, String bpid, long newBlkId, long newGS)
  throws IOException {
 String blockFileName = Block.BLOCK_FILE_PREFIX + newBlkId;
 FsVolumeImpl v = (FsVolumeImpl) replicaInfo.getVolume();
 final File tmpDir = v.getBlockPoolSlice(bpid).getTmpDir();
 final File destDir = DatanodeUtil.idToBlockDir(tmpDir, newBlkId);
 final File dstBlockFile = new File(destDir, blockFileName);
 final File dstMetaFile = FsDatasetUtil.getMetaFile(dstBlockFile, newGS);
 return copyBlockFiles(replicaInfo.getMetaFile(), replicaInfo.getBlockFile(),
   dstMetaFile, dstBlockFile, true);
}
org.apache.hadoop.hdfs.server.datanode.fsdataset.implBlockPoolSlicegetTmpDir

Popular methods of BlockPoolSlice

  • createRbwFile
    RBW files. They get moved to the finalized block directory when the block is finalized.
  • 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
  • deleteReplica,
  • getDfsUsed,
  • getRbwDir,
  • getVolumeMap,
  • incDfsUsed,
  • loadDfsUsed,
  • moveLazyPersistReplicasToFinalized,
  • recoverTempUnlinkedBlock,
  • resolveDuplicateReplicas

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Permission (java.security)
    Legacy security code; do not use.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • 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