Database Reference
In-Depth Information
Cassandra-cli.
create column family tweetcount with
comparator='UTF8Type' and
key_validation_class = 'UTF8Type' and
column_metadata=[{column_name:'count',
validation_class:'Int32Type'}];
2.
Let's populate some rows in tweetstore using cqlsh client:
use tweet_keyspace;
// copy command
copy tweetstore from STDIN;
The following is the console output of copying from STDIN:
cqlsh:tweet_keyspace> copy tweetstore from
STDIN;
[Use \. on a line by itself to end input]
[copy] now(),bama meeting with European
allies on Ukraine http://t.co/1Ik3qBOPxC from
#APress #tns, 2013-10-20,mevivs
[copy] now(),nergdahl uproar halts plan for
return celebration http://t.co/bywaBAoWTP
from #APress #tns,2012-09-22,Chrisk
[copy]
now(),booksdealofdaybot^A[Apress]?Android
Apps Security?http://t.co/
5XLSObkk9f,2014-03-24,mevivs
[copy] \.
3 rows imported in 6 minutes and 35.900
seconds.
3.
Let's create a MapReduce job with this mapper and reducer configur-
ation:
Search WWH ::




Custom Search