RandomSeedGenerator.buildRandom(conf, input, initialPoints, 8, measure, 1L);
// Run k-means
Path kmeansOutput = new Path(output, "kmeans");
KMeansDriver.run(conf, getTestTempDirPath("testdata"), initialPoints, kmeansOutput, 0.001, 10, true, 0.0, false);
// Print out clusters
ClusterDumper clusterDumper = new ClusterDumper(finalClusterPath(conf,
output, 10), new Path(kmeansOutput, "clusteredPoints"));
clusterDumper.setOutputFormat(ClusterDumper.OUTPUT_FORMAT.JSON);
clusterDumper.printClusters(termDictionary);
}