add greedy path method in hadoop ecmp