Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

pramod.dba31_92912 avatar image
pramod.dba31_92912 asked ·

cqlsh connecting to remote node

How to enable cqlsh connecting to remote node.

Is it only possible by enabling thrift(confused as thrift was depreciated).

cassandra
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Cedrick Lunven avatar image
Cedrick Lunven answered ·

Hi @pramod.dba31_92912 thank you for message,

Cqlsh interact with Cassandra node through CQL Binary Protocol. As such its communicate with native_transport_port port (default is 9042) and not THRIFT (which used to be something like 9160).

To connect CQLSH to remote node simply use

cqlsh <public_ip_node>




Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.