Jan 11, 2020 in Big Data | Hadoop
Q: How will you get the distance between two nodes in Apache Hadoop?

1 Answer

0 votes
Jan 11, 2020

In Apache Hadoop we can use NetworkTopology.getDistance() method to get the distance between two nodes.

Distance from a node to its parent is considered as 1.

Related questions

0 votes
Sep 7, 2019 in Big Data | Hadoop
0 votes
Sep 7, 2019 in Big Data | Hadoop
...