Adding a new command problem
Hello, all, I am trying to add a new command into Cassandra. According to my knowledge, to add a new command, i only need to add the new MessagingService.verb, specify the stage corresponding to this verb, setup the serializer/deserializer, and specify a receiveVerbHandler to process that command. However, after adding all these to Cassandra, I continuously got the timeout error saying this: ERROR 15:17:01 Unexpected exception during request; channel = [id: 0x22e0a7e4, /127.0.0.1:51069 = /127.0.0.1:9042] java.lang.AssertionError: Time out exception. I traced into the code and saw each step during sending the message. The message looks fine, it has the right verb type and reuse the Read Stage. But i can not got any message from the receive side. I am not quite sure about where Cassandra starts to process in-coming message at the first place, but i did check IncomingTcpConnection.handleModernVersion() method, and nothing returns or prints after the send-side code finishes (OutboundTcpConnection.writeConnected() function). Could anybody give me some advices? I must miss something here since other command execute well. thanks, - Dong
Re: Error when running Cassandra
Hi, This is the Error I am getting when I am running inside the Instance root@instance-0001:/opt/cassandra/bin# cassandra -f xss = -ea -javaagent:/opt/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M -XX:+HeapDumpOnOutOfMemoryError Error opening zip file or JAR manifest missing : /opt/cassandra/lib/jamm-0.2.5.jar Error occurred during initialization of VM agent library failed to init: instrument JAVA_HOME and PATH is also set root@instance-0001:/opt/cassandra/bin# echo $JAVA_HOME /opt/jdk1.7.0_60 root@instance-0001:/opt/cassandra/bin# echo $PATH /opt/cassandra/bin:/opt/jdk1.7.0_60/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games root@instance-0001:/opt/cassandra/bin# java -version java version 1.7.0_60-ea Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) Still trying to figure out why this error is occurring. Herewith I have attached the docker file that I built. On Thu, Oct 2, 2014 at 2:47 PM, Sumod Pawgi spa...@gmail.com wrote: Check line 151 in your cassandra file. It probably mentions where to look for java as Johan mentions below. Sent from my iPhone On 02-Oct-2014, at 12:50 pm, Johan Edstrom seij...@gmail.com wrote: Looks like the Java binary can't be found, check your $PATH Johan Edstrom - via HopOn October 2, 2014 at 6:56 GMT, Sunil Singh developersunilj...@gmail.com wrote:Can you past full stack trace and Cassandra Log in Log Directory , It isun-clear what went wrong at you end.On 2 October 2014 12:13, Vishanth Balasubramaniam vishan...@wso2.comwrote: Hi, I am trying to run cassandra in my virtual machine and I am getting the following error. root@instance-0001:/opt/cassandra/bin# ./cassandra xss = -ea -javaagent:./../lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1240M -Xmx1240M -Xmn310M -- *Vishanth Balasubramaniam* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94771737718* about me: *http://about.me/vishanth http://about.me/vishanth*