Author: brandonwilliams Date: Mon Dec 6 23:46:44 2010 New Revision: 1042863
URL: http://svn.apache.org/viewvc?rev=1042863&view=rev Log: Update word_count README Modified: cassandra/branches/cassandra-0.7/contrib/word_count/README.txt cassandra/trunk/contrib/word_count/README.txt Modified: cassandra/branches/cassandra-0.7/contrib/word_count/README.txt URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/contrib/word_count/README.txt?rev=1042863&r1=1042862&r2=1042863&view=diff ============================================================================== --- cassandra/branches/cassandra-0.7/contrib/word_count/README.txt (original) +++ cassandra/branches/cassandra-0.7/contrib/word_count/README.txt Mon Dec 6 23:46:44 2010 @@ -13,15 +13,15 @@ contrib/word_count$ bin/word_count The output of the word count can now be configured. In the bin/word_count file, you can specify the OUTPUT_REDUCER. The two options are 'filesystem' and 'cassandra'. The filesystem option outputs to the /tmp/word_count* -directories. The cassandra option outputs to the 'Standard2' column family. +directories. The cassandra option outputs to the 'output_words' column family +in the 'wordcount' keyspace. -In order to view the results in Cassandra, one can use python/pycassa and +In order to view the results in Cassandra, one can use bin/cassandra-cli and perform the following operations: -$ python ->>> import pycassa ->>> con = pycassa.connect('Keyspace1') ->>> cf = pycassa.ColumnFamily(con, 'Standard2') ->>> list(cf.get_range()) +$ bin/cassandra-cli +> connect localhost/9160 +> use wordcount; +> list output_words; Read the code in src/ for more details. Modified: cassandra/trunk/contrib/word_count/README.txt URL: http://svn.apache.org/viewvc/cassandra/trunk/contrib/word_count/README.txt?rev=1042863&r1=1042862&r2=1042863&view=diff ============================================================================== --- cassandra/trunk/contrib/word_count/README.txt (original) +++ cassandra/trunk/contrib/word_count/README.txt Mon Dec 6 23:46:44 2010 @@ -13,15 +13,15 @@ contrib/word_count$ bin/word_count The output of the word count can now be configured. In the bin/word_count file, you can specify the OUTPUT_REDUCER. The two options are 'filesystem' and 'cassandra'. The filesystem option outputs to the /tmp/word_count* -directories. The cassandra option outputs to the 'Standard2' column family. +directories. The cassandra option outputs to the 'output_words' column family +in the 'wordcount' keyspace. -In order to view the results in Cassandra, one can use python/pycassa and +In order to view the results in Cassandra, one can use bin/cassandra-cli and perform the following operations: -$ python ->>> import pycassa ->>> con = pycassa.connect('Keyspace1') ->>> cf = pycassa.ColumnFamily(con, 'Standard2') ->>> list(cf.get_range()) +$ bin/cassandra-cli +> connect localhost/9160 +> use wordcount; +> list output_words; Read the code in src/ for more details.