title: Are there any implementations of Kmeans with Cosine distance in Apache Spark/PySpark?
body: <p>Are there any working implementations of KMeans with Cosine distance applied to a Tf-IDF processed data frame in Apache Spark?</p>
  
  <p>Spark, of course has Euclidean distance implementation in the ml library, but not so for any other distance measures.</p>