incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <>
Subject Re: Unable to run hadoop_cql3_word_count examples
Date Sun, 08 Dec 2013 19:30:18 GMT
> InvalidRequestException(why:consistency level LOCAL_ONE not compatible with replication
strategy (org.apache.cassandra.locator.SimpleStrategy)) at 
The LOCAL_ONE consistency level can only be used with the NetworkTopologyStrategy. 

I had a quick look and the code does not use LOCAL_ONE, did you make a change?

Aaron Morton
New Zealand

Co-Founder & Principal Consultant
Apache Cassandra Consulting

On 3/12/2013, at 10:03 pm, Parth Patil <> wrote:

> Hi,
> I am new to Cassandra and I am exploring the Hadoop integration (MapReduce) provided
by Cassandra.
> I am trying to run the hadoop examples provided in the cassandra's repo under examples/hadoop_cql3_word_count.
I am using the cassandra-2.0 branch. I have a single node cassandra running locally. I was
able to run the ./bin/word_count_setup step successfully but when I run the ./bin/word_count
step I am getting the following error :
> java.lang.RuntimeException at org.apache.cassandra.hadoop.cql3.CqlPagingRecordReader$RowIterator.executeQuery(
at org.apache.cassandra.hadoop.cql3.CqlPagingRecordReader$RowIterator.(
at org.apache.cassandra.hadoop.cql3.CqlPagingRecordReader.initialize(
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.initialize( at
org.apache.hadoop.mapred.MapTask.runNewMapper( at
at org.apache.hadoop.mapred.LocalJobRunner$ Caused by: InvalidRequestException(why:consistency
level LOCAL_ONE not compatible with replication strategy (org.apache.cassandra.locator.SimpleStrategy))
at org.apache.cassandra.thrift.Cassandra$execute_prepared_cql3_query_result$
at org.apache.cassandra.thrift.Cassandra$execute_prepared_cql3_query_result$
at org.apache.cassandra.thrift.Cassandra$
at org.apache.thrift.TServiceClient.receiveBase( at org.apache.cassandra.thrift.Cassandra$Client.recv_execute_prepared_cql3_query(
at org.apache.cassandra.thrift.Cassandra$Client.execute_prepared_cql3_query(
at org.apache.cassandra.hadoop.cql3.CqlPagingRecordReader$RowIterator.executeQuery(
... 6 more
> Has anyone seen this before ? Am I missing something ?
> -- 
> Best,
> Parth

View raw message