incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tharindu Mathew <mcclou...@gmail.com>
Subject Exception in Hadoop Word Count sample
Date Wed, 14 Sep 2011 19:19:37 GMT
I see $subject. Can anyone help me to rectify this?

Stacktrace:

Exception in thread "main" org.apache.thrift.TApplicationException: Required
field 'replication_factor' was not found in serialized data! Struct:
KsDef(name:wordcount,
strategy_class:org.apache.cassandra.locator.SimpleStrategy,
strategy_options:{replication_factor=1}, replication_factor:0,
cf_defs:[CfDef(keyspace:wordcount, name:input_words, column_type:Standard,
comparator_type:AsciiType, default_validation_class:AsciiType),
CfDef(keyspace:wordcount, name:output_words, column_type:Standard,
comparator_type:AsciiType, default_validation_class:AsciiType),
CfDef(keyspace:wordcount, name:input_words_count, column_type:Standard,
comparator_type:UTF8Type, default_validation_class:CounterColumnType)])
at
org.apache.thrift.TApplicationException.read(TApplicationException.java:108)
at
org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_keyspace(Cassandra.java:1531)
at
org.apache.cassandra.thrift.Cassandra$Client.system_add_keyspace(Cassandra.java:1514)
at WordCountSetup.setupKeyspace(Unknown Source)
at WordCountSetup.main(Unknown Source)

-- 
Regards,

Tharindu

blog: http://mackiemathew.com/

Mime
View raw message