Cassandra – IP address in Windows Community Edition

Edit

C:\Program Files\DataStax Community\apache-cassandra\conf\cassandra.yaml

Change

seeds: "127.0.0.1,<MY NEW IP>"
listen_address:<MY NEW IP>
rpc_address:<MY NEW IP>

Where <MY NEW IP>, e.g. 192.168.1.3

Restart the service

To connect to your server from your workstation, e.g.

C:\WINDOWS\system32>"C:\Program Files\DataStax Community\python\py
thon.exe" "C:\Program Files\DataStax Community\apache-cassandra\bi
n\cqlsh" "192.168.1.3" "9042"
Connected to Test Cluster at 192.168.1.3:9042.
[cqlsh 5.0.1 | Cassandra 2.1.9 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh>

Note that the quotes ARE IMPORTANT!

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.