Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra port usage - how are the ports used?

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?

like image 553
knorv Avatar asked Mar 01 '10 21:03

knorv


People also ask

Which ports does Cassandra use?

What ports does Cassandra use? By default, Cassandra uses 7000 for cluster communication (7001 if SSL is enabled), 9042 for native protocol clients, and 7199 for JMX.

How do I know which port Cassandra is running?

We can use netstat -atn to check whether port 9160 is active or not.

Does Cassandra use TCP UDP?

When experimenting with Cassandra I've observed that Cassandra listens to the following ports: TCP *:8080.

What protocol does Cassandra use?

Cassandra uses a protocol called gossip to discover location and state information about the other nodes participating in a Cassandra cluster. Gossip is a peer-to-peer communication protocol in which nodes periodically exchange state information about themselves and about other nodes they know about.


1 Answers

@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:

  • 7199 - JMX (was 8080 pre Cassandra 0.8.xx)
  • 7000 - Internode communication (not used if TLS enabled)
  • 7001 - TLS Internode communication (used if TLS enabled)
  • 9160 - Thrift client API
  • 9042 - CQL native transport port
like image 69
Matthew O'Riordan Avatar answered Oct 01 '22 17:10

Matthew O'Riordan