Cassandra-env.sh

Any configuration related to JVM tuning is present within this file. Only one parameter needs to be changed within this file to get us running.

Cassandra exposes other statistics and management operations via Java Management Extensions (JMX). Cassandra uses the JMX port for JMX connection. The nodetool utility is a JMX compliant tool.

You can set the JMX port by editing the cassandra-env.sh configuration file and adding the following line:

JMX_PORT="7199"

Set the value of the JMX port on the three instances as follows:

CASSANDRA_DIR1/conf/cassandra-en.sh - 7199CASSANDRA_DIR2/conf/cassandra-env.sh - 7200CASSANDRA_DIR3/conf/cassandra-env.sh - 7201

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.