Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For those of you that are interested, the current default placement behavior as roughly interpreted by reading BloackPlacementPoicyDefault.java. Feel free to correct any misinterpretations:
- - Try to place the first replica on the local machine if there's a DN there, and it has available capacity in a required storage type
- - If the local machine has a DN, but not the required storage type, then choose a node on the local rack if possible.
- - If the local machine has no DN or the local rack has no available DNs with a required storage type, choose a node at random with a required storage type
- - For the second and third replicas, choose a remote rack from the first replica (if multiple racks exist) with a required storage type
Advertisement
Add Comment
Please, Sign In to add comment