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

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

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

origin: org.apache.hadoop/hadoop-hdfs

@Override
public boolean isMovable(Collection<DatanodeInfo> locs,
  DatanodeInfo source, DatanodeInfo target) {
 final Map<String, List<DatanodeInfo>> rackMap = new HashMap<>();
 final List<DatanodeInfo> moreThanOne = new ArrayList<>();
 final List<DatanodeInfo> exactlyOne = new ArrayList<>();
 splitNodesWithRack(locs, locs, rackMap, moreThanOne, exactlyOne);
 return notReduceNumOfGroups(moreThanOne, source, target);
}
origin: org.apache.hadoop/hadoop-hdfs

splitNodesWithRack(availableReplicas, delCandidates, rackMap, moreThanOne,
  exactlyOne);
origin: ch.cern.hadoop/hadoop-hdfs

splitNodesWithRack(candidates, rackMap, moreThanOne, exactlyOne);
origin: io.prestosql.hadoop/hadoop-apache

splitNodesWithRack(candidates, rackMap, moreThanOne, exactlyOne);
org.apache.hadoop.hdfs.server.blockmanagementBlockPlacementPolicyDefaultsplitNodesWithRack

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.
  • chooseRemoteRack
    Choose numOfReplicas nodes from the racks that localMachine is NOT on. if not enough nodes are avail
  • getMaxNodesPerRack
    Calculate the maximum number of replicas to allocate per rack. It also limits the total number of re
  • chooseRemoteRack,
  • getMaxNodesPerRack,
  • getPipeline,
  • getRequiredStorageTypes,
  • initialize,
  • logNodeIsNotChosen,
  • pickupReplicaSet,
  • addIfIsGoodTarget,
  • isGoodTarget

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Vim plugins
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