Clustering of Real-time Data at Scale
summary
Describes a single-pass streaming K‑means implementation added to Apache Mahout (targeted for 0.8) that builds an O(K log N) sketch of intermediate centroids, merges them and runs in-memory K‑means with K‑means++ initialization. Uses MapReduce mappers to run the stream sketch, one reducer to finalize, and a Storm bolt prototype for online use. Uses approximate nearest neighbor via random projections for speed; quality matches batch K‑means on easy sets and runs up to about 8× faster on 1,000-cluster tests.
AI-written summary · about
chapters (12)
- 0:00Introduction to streaming K-means
- 1:17What is clustering and K-means
- 3:27How K-means works
- 5:55Challenges in K-means
- 8:41Speeding up K-means
- 11:49K-means in Mahout
- 13:56Streaming K-means approach
- 18:31MapReduce implementation
- 19:55Storm integration
- 21:17Performance comparison
- 31:46Speed results
- 35:20Conclusion and code
