When experimenting with Cassandra I've observed that Cassandra listens to the following ports:
- TCP *:8080
- TCP *:8888
- TCP *:57311
- TCP *:57312
- TCP 127.0.0.1:7000
- TCP 127.0.0.1:9160
- UDP 127.0.0.1:700
How does Cassandra use each of the ports listed?
When experimenting with Cassandra I've observed that Cassandra listens to the following ports:
How does Cassandra use each of the ports listed?
8080 - JMX (remote)
8888 - Remote debugger (removed in 0.6.0)
7000 - Used internal by Cassandra
(7001 - Obsolete, removed in 0.6.0. Used for membership communication, aka gossip)
9160 - Thrift client API
Cassandra FAQ What ports does Cassandra use?
I resolved issue using below steps :
Stop cassandara services
Take backup and Change port from 9042 to 9035
Start Cassandra services
create cqlshrc file.
Thanks, Mahesh
For Apache Cassandra 2.0 you need to take into account the following TCP ports: (See EC2 security group configuration and Apache Cassandra FAQ)
Cassandra
com.sun.management.jmxremote.rmi.port
property.DataStax OpsCenter
Architecture
A possible architecture with Cassandra + OpsCenter on EC2 could look like this:
In addition to the above answers, as part of configuring your firewall, if you are using SSH then use port 22.
JMX now uses port 7199 instead of port 8080 (as of Cassandra 0.8.xx).
This is configurable in your cassandra-env.sh file, but the default is 7199.
@Schildmeijer is largely right, however port 7001 is still used when using TLS Encrypted Internode communication
So my complete list would be for current versions of Cassandra: