calculate_pairwise_distance_with_hadoop