A Parallel K-Medoids Algorithm for Clustering based on MapReduce