Update:

After removing old /var/log/Cassandra and /var/lib/Cassandra, now I am seeing 
the below error:
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$>
 log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/cassandra/system.log (Permission denied)
            at java.io.FileOutputStream.openAppend(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
            at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
            at 
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
            at 
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
            at 
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
            at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
            at 
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
            at 
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
            at 
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
            at 
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
            at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
            at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
            at 
org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:922)
            at 
org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
            at 
org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:58)
            at 
org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator.java:914)
            at 
org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:461)
            at 
org.apache.cassandra.service.CassandraDaemon.initLog4j(CassandraDaemon.java:100)
            at 
org.apache.cassandra.service.CassandraDaemon.<clinit>(CassandraDaemon.java:58)
 INFO 14:11:21,923 Logging initialized
 INFO 14:11:21,937 JVM vendor/version: Java HotSpot(TM) Server VM/1.6.0_38
 INFO 14:11:21,938 Heap size: 1032847360/1033895936
 INFO 14:11:21,938 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 14:11:21,939 JNA not found. Native methods will be disabled.
 INFO 14:11:21,959 Loading settings from 
file:/home/anjani/apache-cassandra-1.2.1/conf/cassandra.yaml
 INFO 14:11:22,342 32bit JVM detected.  It is recommended to run Cassandra on a 
64bit JVM for better performance.
 INFO 14:11:22,342 DiskAccessMode 'auto' determined to be standard, 
indexAccessMode is standard
 INFO 14:11:22,342 disk_failure_policy is stop
 INFO 14:11:22,347 Global memtable threshold is enabled at 328MB
 INFO 14:11:22,979 Initializing key cache with capacity of 49 MBs.
 INFO 14:11:22,989 Scheduling key cache save to each 14400 seconds (going to 
save all keys).
 INFO 14:11:22,990 Initializing row cache with capacity of 0 MBs and provider 
org.apache.cassandra.cache.SerializingCacheProvider
 INFO 14:11:22,996 Scheduling row cache save to each 0 seconds (going to save 
all keys).
ERROR 14:11:23,026 Stopping the gossiper and the RPC server
ERROR 14:11:23,026 Exception encountered during startup
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)
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.com<http://www.infogroup.com>

Powering Business Growth

Find us here:  Twitter<http://twitter.com/infogroup>  |  
Facebook<http://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 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.com<mailto: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<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 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<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

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



Reply via email to