How to connect the cassandra remotely?
If you have cassandra installed on your unix box and wanted to connect to cassandra remotely from some other machine than you need to update the cassandra.yaml for the remote connections.
Please update the following lines in your cassandra.yaml file
seeds: "127.0.0.1"
to
seeds: "YOUR_LOCAL_MACHINE_IP" (*keep the doubles quotes)
listen_address: localhost
to
listen_address: YOUR_LOCAL_MACHINE_IP
rpc_address: localhost
to
rpc_address: YOUR_LOCAL_MACHINE_IP
Save the file and restart your cassandra server.
$ service cassandra stop
and than
$ service cassandra start
If you have cassandra installed on your unix box and wanted to connect to cassandra remotely from some other machine than you need to update the cassandra.yaml for the remote connections.
Please update the following lines in your cassandra.yaml file
seeds: "127.0.0.1"
to
seeds: "YOUR_LOCAL_MACHINE_IP" (*keep the doubles quotes)
listen_address: localhost
to
listen_address: YOUR_LOCAL_MACHINE_IP
rpc_address: localhost
to
rpc_address: YOUR_LOCAL_MACHINE_IP
Save the file and restart your cassandra server.
$ service cassandra stop
and than
$ service cassandra start
No comments:
Post a Comment