Skip to content

Get the datanode info by OzoneClient API to check SCMContainerPlacementRackScatter #6362

Closed Answered by siddhantsangwan
Montura asked this question in FAQ
Discussion options

You must be logged in to vote

Yeah looks ok to me. The java doc of getLocationList suggests using getLocationLists instead:

/**
   * Use this expensive method only when absolutely needed!
   * It creates a new list so it is not an O(1) operation.
   * Use getLocationLists() instead.
   * @return a list of OmKeyLocationInfo
   */

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Montura
Comment options

@siddhantsangwan
Comment options

Answer selected by Montura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants