Tabnine Logo
BlockPlacementPolicyDefault.chooseRemoteRack
Code IndexAdd Tabnine to your IDE (free)

How to use
chooseRemoteRack
method
in
org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault

Best Java code snippets using org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.chooseRemoteRack (Showing top 3 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
  results, avoidStaleNodes, storageTypes);
if (--numOfReplicas == 0) {
final DatanodeDescriptor dn1 = results.get(1).getDatanodeDescriptor();
if (clusterMap.isOnSameRack(dn0, dn1)) {
 chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
   results, avoidStaleNodes, storageTypes);
} else if (newBlock){
origin: ch.cern.hadoop/hadoop-hdfs

chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
  results, avoidStaleNodes, storageTypes);
if (--numOfReplicas == 0) {
final DatanodeDescriptor dn1 = results.get(1).getDatanodeDescriptor();
if (clusterMap.isOnSameRack(dn0, dn1)) {
 chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
   results, avoidStaleNodes, storageTypes);
} else if (newBlock){
origin: io.prestosql.hadoop/hadoop-apache

chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
  results, avoidStaleNodes, storageTypes);
if (--numOfReplicas == 0) {
final DatanodeDescriptor dn1 = results.get(1).getDatanodeDescriptor();
if (clusterMap.isOnSameRack(dn0, dn1)) {
 chooseRemoteRack(1, dn0, excludedNodes, blocksize, maxNodesPerRack,
   results, avoidStaleNodes, storageTypes);
} else if (newBlock){
org.apache.hadoop.hdfs.server.blockmanagementBlockPlacementPolicyDefaultchooseRemoteRack

Javadoc

Choose numOfReplicas nodes from the racks that localMachine is NOT on. if not enough nodes are available, choose the remaining ones from the local rack

Popular methods of BlockPlacementPolicyDefault

  • chooseReplicaToDelete
    Decide whether deleting the specified replica of the block still makes the block conform to the conf
  • chooseTarget
  • useDelHint
    Check if we can use delHint.
  • addToExcludedNodes
    Add localMachine and related nodes to excludedNodes for next replica choosing. In sub class, we can
  • adjustSetsWithChosenReplica
  • chooseDataNode
    Choose a datanode from the given scope with specified storage type.
  • chooseFromNextRack
  • chooseLocalRack
    Choose one node from the rack that localMachine is on. if no such node is available, choose one node
  • chooseLocalStorage
    Choose localMachine as the target. if localMachine is not available, choose a node on the same rack
  • chooseRandom
    Randomly choose numOfReplicas targets from the given scope.
  • getMaxNodesPerRack
    Calculate the maximum number of replicas to allocate per rack. It also limits the total number of re
  • getPipeline
    Return a pipeline of nodes. The pipeline is formed finding a shortest path that starts from the writ
  • getMaxNodesPerRack,
  • getPipeline,
  • getRequiredStorageTypes,
  • initialize,
  • logNodeIsNotChosen,
  • pickupReplicaSet,
  • splitNodesWithRack,
  • addIfIsGoodTarget,
  • isGoodTarget

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JPanel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
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