CanopyDriver.run(conf, getTestTempDirPath("testdata"), output, manhattanDistanceMeasure, 3.1, 2.1, true, false);
Path path = new Path(output, "clusteredPoints/part-m-00000");
SequenceFile.Reader reader = new SequenceFile.Reader(fs, path, conf);
int count = 0;
Writable clusterId = new IntWritable(0);
WeightedVectorWritable vector = new WeightedVectorWritable();
while (reader.next(clusterId, vector)) {
count++;
System.out.println("Txt: " + clusterId + " Vec: " + AbstractCluster.formatVector(vector.getVector(), null));
}
assertEquals("number of points", points.size(), count);
reader.close();
}