DZone
Database Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Database Zone > Configuring Remote Management and Monitoring on a Cassandra Node With JConsole

Configuring Remote Management and Monitoring on a Cassandra Node With JConsole

Learn how to set up remote management to for your Cassandra nodes with a few easy commands.

Tim Ojo user avatar by
Tim Ojo
·
Aug. 16, 16 · Database Zone · Tutorial
Like (3)
Save
Tweet
8.67K Views

Join the DZone community and get the full member experience.

Join For Free

Want to get remote management up and running? It's easy. Just follow along.

In your cassandra-env.sh set:

LOCAL_JMX=no

If you want username and password security, keep the default setting for JMX remote authenticate as true. Otherwise, set it to false:

JVM_OPTS="$JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false"

Note: If set to true, enter a username and password for the JMX user in the jmxremote.password.file. Follow the instructions here on how to secure that file. Setting jmxremote.authenticate to true also requires you to pass in the username and password when running a nodetool command, e.g. nodetool status -u cassandra -pw cassandra

Restart the server (if needed).

Connecting to the Node Using JConsole for Monitoring

Find the JConsole jar in your JDK_HOME/bin or JDK_HOME/lib directory. If you don’t have the Java JDK installed, it can be downloaded from the Oracle Website.

Double-click the executable jar to run it (or run it from the command line). Select “Remote Process” and enter the following connection string.

 service:jmx:rmi:///jndi/rmi://<target ip address>:7199/jmxrmi

Replace <target ip address> with the address of the machine you intend to manage or monitor.

Note: JConsole may try (and fail) to connect using SSL first. If it does, it will ask if it can connect over a non-encrypted connection. You should answer this prompt in the affirmative and you are good.

Congrats! You now have everything you need to monitor and manage a Cassandra node.

For help with how to monitor Cassandra using JMX and with interpreting the metrics see:
  • Monitor Cassandra Performance Metrics
  • Collect Cassandra Metrics
  • Using JConsole
JConsole remote

Published at DZone with permission of Tim Ojo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • APIs Are Now at the Center of Digital Transformation
  • A Concise Guide to DevSecOps and Their Importance in CI/CD Pipeline
  • SRE: From Theory to Practice: What’s Difficult About Tech Debt?
  • Kubernetes Data Simplicity: Getting Started With K8ssandra

Comments

Database Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo