Error : NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon

2014-10-06 Thread Vishanth Balasubramaniam
Hi,

I am relatively new to Cassandra and getting this following error when I
run Cassandra.

root@instance-0001:/opt/cassandra/bin# cassandra
root@instance-0001:/opt/cassandra/bin# Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.service.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class:
org.apache.cassandra.service.CassandraDaemon.  Program will exit.

I tried cassandra, cassandra -f, cassandra -f start, which all prompted me
the same issue.

I believe this could be because of incorrect Classpath, I would like to
know how to set the Classpath correctly.

Thank you,
-- 
*Vishanth Balasubramaniam*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94771737718*
about me: *http://about.me/vishanth *


Re: Error : NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon

2014-10-06 Thread Michael Shuler

On 10/06/2014 04:36 AM, Vishanth Balasubramaniam wrote:

root@instance-0001:/opt/cassandra/bin# cassandra
root@instance-0001:/opt/cassandra/bin# Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.service.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class:
org.apache.cassandra.service.CassandraDaemon.  Program will exit.

I tried cassandra, cassandra -f, cassandra -f start, which all prompted me
the same issue.


Judging from the /opt path, this looks like a tar install - what version?


I believe this could be because of incorrect Classpath, I would like to
know how to set the Classpath correctly.


If you look at the bin/cassandra shell script, the first thing it does 
is look for cassandra.in.sh, which is in the same bin/ directory in a 
tar install. bin/cassandra.in.sh is where the jars are added to $CLASSPATH.


If this is a git checkout, you need to build cassandra, first  ;)

This question is also not on topic for the dev list (development 
discussion for cassandra), and would better be suited to the user list 
(general discussion list for users).


--
Kind regards,
Michael



Partitioned Counters Design

2014-10-06 Thread Rajath Subramanyam
Hi Cassandra developers,

I am working on a project to make counter updates idempotent. I read that
via CASSANDRA-1546 assigns unique marker ids to counter updates in 0.7.1.
Does this unique marker id hold true in the later versions too ? Or at
least in 0.8.1 ?

Please let me know.

Thank you !

Regards,
Rajath

Rajath Subramanyam


Consistency Question

2014-10-06 Thread William Katsak

Hello,

I have a question about Cassandra's consistency in the case of failure 
conditions. Am I correct in assuming that in the event of a node failure 
with write consistency ALL (assuming the failure happened after the 
coordinator started the write), a subsequent read with ONE could return 
stale data if the node recovered?


I assume this write would return with a TimeoutException, but would a 
hint be written?


Thanks,
Bill Katsak


Re: Consistency Question

2014-10-06 Thread Aleksey Yeschenko
Yes, and a hint would be written.

Also, this mailing list is not for questions like this one - please use 
us...@cassandra.apache.org instead in the future.

-- 
AY

On October 6, 2014 at 10:47:51 PM, William Katsak (wkat...@gmail.com) wrote:

Hello,  

I have a question about Cassandra's consistency in the case of failure  
conditions. Am I correct in assuming that in the event of a node failure  
with write consistency ALL (assuming the failure happened after the  
coordinator started the write), a subsequent read with ONE could return  
stale data if the node recovered?  

I assume this write would return with a TimeoutException, but would a  
hint be written?  

Thanks,  
Bill Katsak  


Re: Partitioned Counters Design

2014-10-06 Thread Aleksey Yeschenko
No, there are no unique ids per increment. That was one of the ideas suggested 
in https://issues.apache.org/jira/browse/CASSANDRA-4775, but ultimately 
declined.

Read that ticket, and the one linked to it, for details.

-- 
AY

On October 6, 2014 at 10:20:05 PM, Rajath Subramanyam (rajat...@gmail.com) 
wrote:

Hi Cassandra developers,  

I am working on a project to make counter updates idempotent. I read that  
via CASSANDRA-1546 assigns unique marker ids to counter updates in 0.7.1.  
Does this unique marker id hold true in the later versions too ? Or at  
least in 0.8.1 ?  

Please let me know.  

Thank you !  

Regards,  
Rajath  
  
Rajath Subramanyam