Cassandra/cqlsh Error: TSocket read 0 bytes

2013-02-07 Thread Adam Venturella
Has anyone encountered this before?
What did I most likely break or how do I fix it?


Re: Cassandra/cqlsh Error: TSocket read 0 bytes

2013-02-07 Thread Dave Brosius
An exception occurred on the server, check the logs for the details of 
what happened, and post back here.


On 02/07/2013 11:04 PM, Adam Venturella wrote:

Has anyone encountered this before?
What did I most likely break or how do I fix it?




Re: Cassandra/cqlsh Error: TSocket read 0 bytes

2013-02-07 Thread Adam Venturella
I got it.

Had to run:
nodetool cleanup bigmethod

It was not on a production box, just a VM off my laptop for some testing.


On Thu, Feb 7, 2013 at 8:22 PM, Dave Brosius dbros...@mebigfatguy.comwrote:

 An exception occurred on the server, check the logs for the details of
 what happened, and post back here.


 On 02/07/2013 11:04 PM, Adam Venturella wrote:

 Has anyone encountered this before?
 What did I most likely break or how do I fix it?





cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani

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



Re: cassandra cqlsh error

2013-02-04 Thread aaron morton
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

On 5/02/2013, at 4:37 AM, Kumar, Anjani anjani.ku...@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
  



RE: cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani
Thank you Aaron! I uninstalled older version of Cassandra and then brought 
1.2.1 version of apache Cassandra as per your 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:aa...@thelastpickle.com]
Sent: Monday, February 04, 2013 11:34 AM
To: 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

On 5/02/2013, at 4:37 AM, Kumar, Anjani 
anjani.ku...@infogroup.commailto:anjani.ku...@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




Re: cassandra cqlsh error

2013-02-04 Thread Brian Jeltema
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 your mail below. However, I am 
 receiving the following error while starting Cassandra.
 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:aa...@thelastpickle.com] 
 Sent: Monday, February 04, 2013 11:34 AM
 To: 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
  
 On 5/02/2013, at 4:37 AM, Kumar, Anjani anjani.ku...@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
  
  



RE: cassandra cqlsh error

2013-02-04 Thread Dave Brosius
xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities 
-XX:ThreadPriorityPolicy=42 -Xms1005M -Xmx1005M -Xmn200M 
-XX:+HeapDumpOnOutOfMemoryError -Xss180k  That is not an error, that is just 
'debugging' information output to the command line.  - Original Message 
-From: quot;Kumar, Anjaniquot; ;anjani.ku...@infogroup.com 

RE: cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani
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
 INFO 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.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.

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, Anjani Kumar 
anjani...@gmail.commailto:anjani...@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.jelt...@digitalenvoy.net]
Sent: Monday, February 04, 2013 12:14 PM
To: 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 your 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

RE: cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani
It looks like an error. Since I checked for “cassandra”  in ps –ef and didn’t 
see anything.

Anjani Kumar
Sr. Software Engineer

Infogroup
office: 402.836.3337
www.infogroup.comhttp://www.infogroup.com

Powering Business Growth

Find us here:  Twitterhttp://twitter.com/infogroup  |  
Facebookhttp://www.facebook.com/Infogroup

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

xss =  -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities 
-XX:ThreadPriorityPolicy=42 -Xms1005M -Xmx1005M -Xmn200M 
-XX:+HeapDumpOnOutOfMemoryError -Xss180k


That is not an error, that is just 'debugging' information output to the 
command line.


- Original Message -
From: quo t;Kumar, Anjani 
anjani.ku...@infogroup.commailto:anjani.ku...@infogroup.com
Sent: Mon, February 4, 2013 13:04
Subject: RE: cassandra cqlsh error
Thank you Aaron! I uninstalled older version of Cassandra and then brought 
1.2.1 version of apache Cassandra as per your 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:aa...@thelastpickle.com]
Sent: Monday, February 04, 2013 11:34 AM
To: user@cassandra.apache.orgmailto: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

On 5/02/2013, at 4:37 AM, Kumar, Anjani 
anjani.ku...@infogroup.commailto:anjani.ku...@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 starti ng 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






RE: cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani
(Directories.java:113)
at org.apache.cassandra.db.Directories.create(Directories.java:91)
at 
org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
at 
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
at 
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
java.lang.IllegalStateException: No configured daemon
at 
org.apache.cassandra.service.StorageService.stopRPCServer(StorageService.java:314)
at 
org.apache.cassandra.io.util.FileUtils.handleFSError(FileUtils.java:375)
at org.apache.cassandra.db.Directories.init(Directories.java:113)
at org.apache.cassandra.db.Directories.create(Directories.java:91)
at 
org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:403)
at 
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:174)
at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
at 
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
Exception encountered during startup: No configured daemon




Anjani Kumar
Sr. Software Engineer

Infogroup
office: 402.836.3337
www.infogroup.comhttp://www.infogroup.com

Powering Business Growth

Find us here:  Twitterhttp://twitter.com/infogroup  |  
Facebookhttp://www.facebook.com/Infogroup

From: Kumar, Anjani [mailto:anjani.ku...@infogroup.com]
Sent: Monday, February 04, 2013 1:44 PM
To: user@cassandra.apache.org
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
 INFO 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.cassandra.dht.RandomPartitioner

RE: cassandra cqlsh error

2013-02-04 Thread Dave Brosius
 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.RandomPartitioneras the specified partitioner.  - 
Original Message -From: quot;Kumar, Anjaniquot; 
;anjani.ku...@infogroup.com 

RE: cassandra cqlsh error

2013-02-04 Thread Kumar, Anjani
This is fixed.

Thanks,


From: Dave Brosius [mailto:dbros...@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.ku...@infogroup.commailto:anjani.ku...@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 
anjani...@gmail.commailto:anjani

Cassandra - cqlsh

2012-08-30 Thread Morantus, James (PCLN-NW)
Hello all,

This is my first setup of Cassandra and I'm having some issues running the 
cqlsh tool.
Have any of you come across this error before? If so, please help.

/bin/cqlsh -h localhost -p 9160
No appropriate python interpreter found. 

Thanks
James


Re: Cassandra - cqlsh

2012-08-30 Thread Tyler Hobbs
What OS are you using?

On Thu, Aug 30, 2012 at 12:09 PM, Morantus, James (PCLN-NW) 
james.moran...@priceline.com wrote:

 Hello all,

 This is my first setup of Cassandra and I'm having some issues running the
 cqlsh tool.
 Have any of you come across this error before? If so, please help.

 /bin/cqlsh -h localhost -p 9160
 No appropriate python interpreter found.

 Thanks
 James




-- 
Tyler Hobbs
DataStax http://datastax.com/


RE: Cassandra - cqlsh

2012-08-30 Thread Morantus, James (PCLN-NW)
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Linux nw-mydb-s05 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012 x86_64 
x86_64 x86_64 GNU/Linux

Thanks


From: Tyler Hobbs [mailto:ty...@datastax.com]
Sent: Thursday, August 30, 2012 2:21 PM
To: user@cassandra.apache.org
Subject: Re: Cassandra - cqlsh

What OS are you using?
On Thu, Aug 30, 2012 at 12:09 PM, Morantus, James (PCLN-NW) 
james.moran...@priceline.commailto:james.moran...@priceline.com wrote:
Hello all,

This is my first setup of Cassandra and I'm having some issues running the 
cqlsh tool.
Have any of you come across this error before? If so, please help.

/bin/cqlsh -h localhost -p 9160
No appropriate python interpreter found.

Thanks
James



--
Tyler Hobbs
DataStaxhttp://datastax.com/


Re: Cassandra - cqlsh

2012-08-30 Thread Tyler Hobbs
RHEL 5 only ships with Python 2.4, which is pretty ancient and below what
cqlsh will accept.  You can install Python 2.6 with EPEL enabled:
http://blog.nexcess.net/2011/02/25/python-2-6-for-centos-5/

On Thu, Aug 30, 2012 at 1:34 PM, Morantus, James (PCLN-NW) 
james.moran...@priceline.com wrote:

 Red Hat Enterprise Linux Server release 5.8 (Tikanga)

 ** **

 Linux nw-mydb-s05 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012
 x86_64 x86_64 x86_64 GNU/Linux

 ** **

 Thanks

 ** **

 ** **

 *From:* Tyler Hobbs [mailto:ty...@datastax.com]
 *Sent:* Thursday, August 30, 2012 2:21 PM
 *To:* user@cassandra.apache.org
 *Subject:* Re: Cassandra - cqlsh

 ** **

 What OS are you using?

 On Thu, Aug 30, 2012 at 12:09 PM, Morantus, James (PCLN-NW) 
 james.moran...@priceline.com wrote:

 Hello all,

 This is my first setup of Cassandra and I'm having some issues running the
 cqlsh tool.
 Have any of you come across this error before? If so, please help.

 /bin/cqlsh -h localhost -p 9160
 No appropriate python interpreter found.

 Thanks
 James




 --
 Tyler Hobbs
 DataStax http://datastax.com/




-- 
Tyler Hobbs
DataStax http://datastax.com/


RE: Cassandra - cqlsh

2012-08-30 Thread Morantus, James (PCLN-NW)
Ah... Thanks

From: Tyler Hobbs [mailto:ty...@datastax.com]
Sent: Thursday, August 30, 2012 2:42 PM
To: user@cassandra.apache.org
Subject: Re: Cassandra - cqlsh

RHEL 5 only ships with Python 2.4, which is pretty ancient and below what cqlsh 
will accept.  You can install Python 2.6 with EPEL enabled: 
http://blog.nexcess.net/2011/02/25/python-2-6-for-centos-5/
On Thu, Aug 30, 2012 at 1:34 PM, Morantus, James (PCLN-NW) 
james.moran...@priceline.commailto:james.moran...@priceline.com wrote:
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Linux nw-mydb-s05 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012 x86_64 
x86_64 x86_64 GNU/Linux

Thanks


From: Tyler Hobbs [mailto:ty...@datastax.commailto:ty...@datastax.com]
Sent: Thursday, August 30, 2012 2:21 PM
To: user@cassandra.apache.orgmailto:user@cassandra.apache.org
Subject: Re: Cassandra - cqlsh

What OS are you using?
On Thu, Aug 30, 2012 at 12:09 PM, Morantus, James (PCLN-NW) 
james.moran...@priceline.commailto:james.moran...@priceline.com wrote:
Hello all,

This is my first setup of Cassandra and I'm having some issues running the 
cqlsh tool.
Have any of you come across this error before? If so, please help.

/bin/cqlsh -h localhost -p 9160
No appropriate python interpreter found.

Thanks
James



--
Tyler Hobbs
DataStaxhttp://datastax.com/



--
Tyler Hobbs
DataStaxhttp://datastax.com/