Remote cluster with user security enabled

When connecting to a remote cluster that uses authentication and authorization, you should have to provide the IP address of the host, along with a valid username and password:

bin/cqlsh 192.168.0.101 -u cassdba -p flynnLives

If you have trouble connecting to a remote cluster via cqlsh, try to figure out what it is using as its broadcast address, like this:

grep broadcast_ conf/cassandra.yaml# broadcast_address: 1.2.3.4broadcast_address: 192.168.0.101# set broadcast_rpc_address to a value other than 0.0.0.0.# rpc_address. If rpc_address is set to 0.0.0.0, broadcast_rpc_address mustbroadcast_rpc_address: 192.168.0.101#    Uses public IPs as broadcast_address to allow cross-region

Get Mastering Apache Cassandra 3.x - Third 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.