title: Distance between all pairs of points in Apache Spark
body: <p>I have a text file with 470 latitude and longitude values. I want to calculate the distance of all pairs of points. Could anyone tell me how to do it in Apache Spark with JAVA as programming language.</p>
  
  <p>~Regards,
  Chandan</p>