k-means of the hadoop version