Skip to content

Problems build cluster with 2 vms  #2

@alexanderjardim-zz

Description

@alexanderjardim-zz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions