Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems build cluster with 2 vms #2

Closed
alexanderjardim-zz opened this issue May 17, 2015 · 1 comment
Closed

Problems build cluster with 2 vms #2

alexanderjardim-zz opened this issue May 17, 2015 · 1 comment

Comments

@alexanderjardim-zz
Copy link
Contributor

Trying to build a dev cluster at Digital Ocean.
These are the steps I followed:

  1. Created 2 boxes with docker 1.6.2 Ubuntu 14.04 default image from Digital Ocean
  2. docker pull cassandra on both boxes
  3. first node ip is 10.13.13.13 and second node is 10.13.13.14
  4. started cassandra on first node docker run --name cassandra1 -d -e CASSANDRA_BROADCAST_ADDRESS=10.13.13.13 -p 7000:7000 -v /data:/var/lib/cassandra/data cassandra
  5. telnet 10.13.13.13 7000 from second node. Got Escape character is '^]'. as usual
  6. Started second cassandra node: docker run --name cassandra2 -d -e CASSANDRA_SEEDS=10.13.13.13 -e CASSANDRA_BOADCAST_ADDRESS=10.13.13.13 -v /data:/var/lib/cassandra/data cassandra
  7. Nodetool output on first node:
root@cassandra1:~# docker exec -ti cassandra1 /usr/bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address         Load       Tokens  Owns (effective)  Host ID                               Rack
UN  10.13.13.13  51.29 KB   256     100.0%            0daf1848-0d59-46a9-8067-a8f89ad52b24  rack1

And second node:

Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address         Load       Tokens  Owns (effective)  Host ID                               Rack
UN  10.13.13.13  65.66 KB   256     100.0%            be11a163-cc73-4c52-9c93-c8dadb0daf54  rack1

It seems that second node is node becoming a member of the cluster. What am I doing wrong?

@alexanderjardim-zz
Copy link
Contributor Author

Ok,

Now I understand that I got the wrong broadcast at the second node. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant