Sunday, April 29, 2012

How to remote debug Apache Cassandra standalone server


In order to debug the cassandra server from your favorite IDE. You need to add the following into cassandra-env.sh located in apache-cassandra-1.1.0/conf directory.

JVM_OPTS="$JVM_OPTS -Xdebug"
JVM_OPTS="$JVM_OPTS -Xnoagent"
JVM_OPTS="$JVM_OPTS -Djava.compiler=NONE"
JVM_OPTS="$JVM_OPTS -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=n"
cassandra-env.sh




After adding this, once you start the server you can see the following line printed in cassandra console

"Listening for transport dt_socket at address: 5005" 

This the port that you specified in JAVA_OPTS. You can change it to some other value as you want.

Now configure your IDE to run on debug mode.



Now you can debug the apache cassandra server from your favorite IDE :)

23 comments:

Unknown said...

In computing, distributed means splitting data or tasks across multiple machines. In the context of Cassandra, it means that the data is distributed across multiple machines.

Anonymous said...
This comment has been removed by the author.
Anonymous said...

Good informative blog.Thank you so much for sharing.

Weblogic Server 12cR2 Training

Peter Johnson said...

Very Helpful Post And Explained Very Clearly About All the things.Very Helpful. Coming To Our Self We Provide Restaurant Equipment Parts Through Out US At Very Affordable Prices And Also We Offer Same Day Shipping In US.We Offer Only Genuine Products.Really Thanks For Sharing.Have A Nice day.

seo said...

Thums Up! Wat an Extravagant Blog! Completely Cleared All my Doubts,Really Thanks For
Posting and covered all my topics,Urgent Care Services Provided by US.Thanks For Sharing Such An Great Article.I just Want to share this blog with my family and friends.

Unknown said...

It's A Great Pleasure reading your Article, learned a lot of new things, we have to keep on updating it salesforce certification training Thanks for posting.

Unknown said...
This comment has been removed by the author.
Unknown said...

Really Thanks For Posting Such a Useful and informative article. I would like to share this blog with my friends and Colleagues Tico Certification Training

24Layouts said...

Really Thanks For Posting Such an Great Information....

Vizag Real Estate

Unknown said...

Good informative blog.Thank you so much for sharing.
Java Training in Bangalore

Java Training

Java Training in Hyderabad

Java Training in Chennai

Java Training in Coimbatore

Anonymous said...

Thankyou so much for sharing this article.
Android Training in Bangalore

Android Training

Android Online Training

Android Training in Hyderabad

Android Training in Chennai

Android Training in Coimbatore

Pushba said...

Thankyou so much for sharing this article.
IELTS Coaching in chennai

German Classes in Chennai

GRE Coaching Classes in Chennai

TOEFL Coaching in Chennai

spoken english classes in chennai | Communication training

veera said...

| Certification | Cyber Security Online Training Course|

Thanks For Sharing Such an Important and Useful Content On Mulesoft Certification Training Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course|

CCNA Training Course in Chennai | Certification | CCNA Online Training Course|

RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai|

SEO Training in Chennai | Certification | SEO Online Training Course

ramya devi said...

Thanks For Sharing Such an Important and Useful Content On Mulesoft Certification Training DevOps Training in Bangalore

DevOps Training

DevOps Online Training


DevOps Training in Hyderabad

DevOps Online Training in Chennai

DevOps Training in Coimbatore

Unknown said...

Thanks For Sharing Such an Important and Useful Content On Mulesoft Certification Training
selenium training in chennai

selenium training in bangalore

selenium training in hyderabad

selenium training in coimbatore

selenium online training

selenium training

Unknown said...

This information is really awesome thanks for sharing most valuable information.
PHP Training in Chennai

PHP Online Training in Chennai
Machine Learning Training in Chennai

iOT Training in Chennai

Blockchain Training in Chennai

Open Stack Training in Chennai

jdgvks said...

Really Thanks For Posting Such a Useful and informative article. I would like to share this blog with my friends and Colleagues
hadoop training in bangalore

oracle training in bangalore

hadoop training in acte.in/oracle-certification-training">oracle training

oracle online training

oracle training in hyderabad

hadoop training in chennai

Unknown said...

Very Helpful Post And Explained Very Clearly About All the things.Very Helpful. Coming To Our Self We Provide Restaurant Equipment Parts Through Out US At Very Affordable Prices And Also We Offer Same Day Shipping In US.We Offer Only Genuine Products.Really Thanks For Sharing.Have A Nice day.
Data Science Training In Bangalore

Data Science Training

Data Science Online Training

Data Science Training In Hyderabad

Data Science Training In Chennai

Data Science Training In Coimbatore

Hemachandran said...

Thanks For Sharing Such an Important and Useful Content
Java training in chennai

python training in chennai

web designing and development training course in chennai

selenium training in chennai

digital-marketing seo training in chennai

Anonymous said...

Thanks for providing a useful article containing valuable information. start learning the best online software courses.
salesforce training in chennai

software testing training course in chennai

robotic process automation rpa training in chennai

blockchain training in chennai

devops training in chennai

sahasrit said...

Very Helpful Post And Explained Very Clearly About All the things. amazon web services aws training in chennai

microsoft azure training in chennai

workday training in chennai

android-training-in chennai

ios training in chennai

Anonymous said...

Thanks for providing a useful article containing valuable information. start learning the best online software courses.
data science course in chennai

ccna course in chennai

iot course in chennai

ethical hacking course in chennai

cyber security course in chennai

dharani said...

Nice informative content. Thanks for sharing such worthy information.
MVC Training in Chennai
Primavera Training in Chennai
MVC Classes in Chennai
Primavera Course in Chennai
MVC Course in Chennai
Primavera Software Training in Chennai
Best Primavera Training in Chennai