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:

  1. 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.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Good informative blog.Thank you so much for sharing.

    Weblogic Server 12cR2 Training

    ReplyDelete
  4. 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.

    ReplyDelete
  5. 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.

    ReplyDelete
  6. 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.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. 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

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

    Vizag Real Estate

    ReplyDelete
  10. 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

    ReplyDelete
  11. 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

    ReplyDelete