incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kumar, Anjani" <Anjani.Ku...@infogroup.com>
Subject RE: cassandra cqlsh error
Date Mon, 04 Feb 2013 21:24:58 GMT
This is fixed.

Thanks,


From: Dave Brosius [mailto:dbrosius@mebigfatguy.com]
Sent: Monday, February 04, 2013 2:27 PM
To: user@cassandra.apache.org; user@cassandra.apache.org
Subject: RE: cassandra cqlsh error


This part,

ERROR 13:39:24,456 Cannot open /var/lib/cassandra/data/system/Schema/system-Schema-hd-5; partitioner
org.apache.cassandra.dht.RandomPartitioner does not match system partitioner org.apache.cassandra.dht.Murmur3Partitioner.
 Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you
will need to edit that to match your old partitioner if upgrading.

is a problem.

In 1.2 the default partitioner was changed, so if you are using 1.2 against old files, you
will need to edit the cassandra.yaml to have

org.apache.cassandra.dht.RandomPartitioner

as the specified partitioner.


----- Original Message -----
From: "Kumar, Anjani" <anjani.kumar@infogroup.com<mailto:anjani.kumar@infogroup.com>>
Sent: Mon, February 4, 2013 14:43
Subject: RE: cassandra cqlsh error
I installed Sun JDK 6 but I am getting the following error. Please see below. Thanks!

anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>
./cassandra
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42
-Xms1005M -Xmx1005M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>
 INFO 13:39:23,259 Logging initialized
 INFO 13:39:23,276 JVM vendor/version: Java HotSpot(TM) Server VM/1.6.0_38
 INFO 13:39:23,277 Heap size: 1032847360/1033895936
 INF O 13:39:23,277 Classpath: ./../conf:./../build/classes/main:./../build/classes/thrift:./../lib/antlr-3.2.jar:./../lib/apache-cassandra-1.2.1.jar:./../lib/apache-cassandra-clientutil-1.2.1.jar:./../lib/apache-cassandra-thrift-1.2.1.jar:./../lib/avro-1.4.0-fixes.jar:./../lib/avro-1.4.0-sources-fixes.jar:./../lib/commons-cli-1.1.jar:./../lib/commons-codec-1.2.jar:./../lib/commons-lang-2.6.jar:./../lib/compress-lzf-0.8.4.jar:./../lib/concurrentlinkedhashmap-lru-1.3.jar:./../lib/guava-13.0.1.jar:./../lib/high-scale-lib-1.1.2.jar:./../lib/jackson-core-asl-1.9.2.jar:./../lib/jackson-mapper-asl-1.9.2.jar:./../lib/jamm-0.2.5.jar:./../lib/jline-1.0.jar:./../lib/json-simple-1.1.jar:./../lib/libthrift-0.7.0.jar:./../lib/log4j-1.2.16.jar:./../lib/metrics-core-2.0.3.jar:./../lib/netty-3.5.9.Final.jar:./../lib/servlet-api-2.5-20081211.jar:./../lib/slf4j-api-1.7.2.jar:./../lib/slf4j-log4j12-1.7.2.jar:./../lib/snakeyaml-1.6.jar:./../lib/snappy-java-1.0.4.1.jar:./../lib/snaptree-0.1.jar:./../lib/jamm
-0.2.5.jar
 INFO 13:39:23,279 JNA not found. Native methods will be disabled.
 INFO 13:39:23,293 Loading settings from file:/home/anjani/apache-cassandra-1.2.1/conf/cassandra.yaml
 INFO 13:39:23,665 32bit JVM detected.  It is recommended to run Cassandra on a 64bit JVM
for better performance.
 INFO 13:39:23,665 DiskAccessMode 'auto' determined to be standard, indexAccessMode is standard
 INFO 13:39:23,665 disk_failure_policy is stop
 INFO 13:39:23,670 Global memtable threshold is enabled at 328MB
 INFO 13:39:24,306 Initializing key cache with capacity of 49 MBs.
 INFO 13:39:24,324 Scheduling key cache save to each 14400 seconds (going to save all keys).
 INFO 13:39:24,325 Initializing row cache with capacity of 0 MBs and provider org.apache.cassandra.cache.SerializingCacheProvider
 INFO 13:39:24,332 Scheduling row cache save to each 0 seconds (going to save all keys).
 INFO 13:39:24,450 Opening /var/lib/cassandra/data/system/Schema/system-Schema-hd-5 (14976
bytes)
ERROR 13:39:24,456 Cannot open /var/lib/cassandra/data/system/Schema/system-Schema-hd-5; partitioner
org.apache.cassandra.dht.RandomPartitioner does not match system partitioner org.apache.cassandra.dht.Murmur3Partitioner.
 Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you
will need to edit that to match your old partitioner if upgrading.
 INFO 13:39:24,459 Opening /var/lib/cassandra/data/system/Schema/system-Schema-hd-6 (4236
bytes)
ERROR 13:39:24,460 Cannot open /var/lib/cassandra/data/system/Schema/system-Schema-hd-6; partitioner
org.apache.ca ssandra.dht.RandomPartitioner does not match system partitioner org.apache.cassandra.dht.Murmur3Partitioner.
 Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you
will need to edit that to match your old partitioner if upgrading.

anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>
java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) Server VM (build 20.13-b02, mixed mode)
anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>


On Mon, Feb 4, 2013 at 12:02 PM, Anjan i Kumar <anjani604@gmail.com<mailto:anjani604@gmail.com>>
wrote:
anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>
./cassandra
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42
-Xms1005M -Xmx1005M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss180k




From: Brian Jeltema [mailto:brian.jeltema@digitalenvoy.net]
Sent: Monday, February 04, 2013 12:14 PM
To: user@cassandra.apache.org<mailto:user@cassandra.apache.org>
Subject: Re: cassandra cqlsh error

I had this problem using a rather old version of Open JDK. I downloaded the Sun JDK and its
working now.

Brian

On Feb 4, 2013, at 1:04 PM, Kumar, Anjani wrote:

Thank you Aaron! I uninstalled older version of Cassandra and then brought 1.2.1 version of
apache Cassandra as per yo ur mail below. However, I am receiving the following error while
starting Cassandra.
anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$<mailto:anjani@anjani-laptop:~/apache-cassandra-1.2.1/bin$>
./cassandra
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42
-Xms1005M -Xmx1005M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss180k


Thanks,
Anjani

From: aaron morton [mailto:aaron@thelastpickle.com]
Sent:&nb sp;Monday, February 04, 2013 11:34 AM
To: user@cassandra.apache.org<mailto:user@cassandra.apache.org>
Subject: Re: cassandra cqlsh error

Grab 1.2.1, it's fixed there http://cassandra.apache.org/download/

Cheers

-----------------
Aaron Morton
Freelance Cassandra Developer
New Zealand

@aaronmorton
http://www.thelastpickle.com
< /div>

On 5/02/2013, at 4:37 AM, "Kumar, Anjani" <Anjani.Kumar@infogroup.com<mailto:Anjani.Kumar@infogroup.com>>
wrote:


I am facing problem while trying to run cqlsh. Here is what I did:

1.       I brought the tar ball files for both 1.1.7 and 1.2.0 version.
2.       Unzipped and untarred it
3.       Started Cassandra
4.       And then tried starting cqlsh but I am getting the following error in both the versions:
Connection error: Invalid method name: ‘set_cql_version’

Before installing Datastax 1.1.7 and 1.2.0 cassandra, I had installed Cassandra through “sudo
apt-get install Cassandra” on my ubuntu. Since it doesn’t have CQL support(at least I
cant find it) so I thought of installing Datastax version of Cassandra but still no luck starting
cqlsh so far. Any suggestion?

Thanks,
Anjani





Mime
View raw message