How to apply K-Medoids in PySpark?
There is a k-medoids clustering for PySpark at spark-packages.org/package/tdebatty/spark-kmedoids and the source code is github.com/tdebatty/spark-kmedoids.

It can be installed with: 

&gt; $SPARK_HOME/bin/spark-shell --packages tdebatty:spark-kmedoids:0.1.2