gwicke/testreduce — pull request #24 by swong15 (2014-03-01 06:53:32+00:00)
Title: Cassandra data loader

Created file that mirrors importJSON slightly and allows users to load articles into Cassandra.

Some of the fields are filled with random data. (i.e the score field). But this should be a good starting point for actually loading data into Cassandra to test backend logic with real data.

Running "node importCassandra.js en" will attempt to fill the Cassandra data store with the titles in en-wiki10000.json. Verify that the data is actually loaded into cassandra by running a SELECT COUNT(*) on either the tests or test_by_score tables. Each json file contains 10000 article titles and there should be 10000 entries in your database.