docker cassandra with opscenter unable connected -


i want create 3 cassandra 1 opscenter. docker-compose.yml

version: '2' services:     cassandra-1:         image: cassandra         container_name: cassandra-1         environment:             cassandra_broadcast_address: "cassandra-1"         ports:             - 7000             - 9160:9160             - 9042:9042             - 7199:7199         volumes:             - "./test_vol_1/:/var/lib/cassandra"         restart:      cassandra-2:         image: cassandra         container_name: cassandra-2         environment:             cassandra_broadcast_address: "cassandra-2"             cassandra_seeds: "cassandra-1"         ports:             - 7000         depends_on:             - cassandra-1         volumes:             - "./test_vol_2/:/var/lib/cassandra"      cassandra-3:         image: cassandra         container_name: cassandra-3         environment:             cassandra_broadcast_address: "cassandra-3"             cassandra_seeds: "cassandra-1"         ports:             - 7000         depends_on:             - cassandra-1         volumes:             - "./test_vol_3/:/var/lib/cassandra"      opscenter:         image: poklet/opscenter         container_name: opscenter         links:             - cassandra-1         ports:             - "8888:8888" 

and start up, $ docker-compose -d. work. , try use nodetool status on cassandra-1.

$ docker exec -it cassandra-1 bash  root@f2da4dfc0c1b:/# nodetool status datacenter: datacenter1 ======================= status=up/down |/ state=normal/leaving/joining/moving --  address     load       tokens       owns (effective)  host id                               rack un  172.18.0.2  265.47 kib  256          64.7%             4c825ccc-71bb-4a17-8000-a3c8fc6cb703  rack1 un  172.18.0.3  209.88 kib  256          67.6%             08f50dc6-22e1-4038-b195-0b29e8075b03  rack1 un  172.18.0.4  230.39 kib  256          67.7%             1aed5f9a-9ce6-4543-a9d2-13bb58633c98  rack1 

and open http://127.0.0.1:8888 on host browser. , click manage existing cluster. type ip address (127.0.0.1, localhost). got message.

error creating cluster: unable connect cluster. error is: unable connect servers 

i founded cassandra-1 ip address empty.

$ docker inspect --format '{{ .networksettings.ipaddress }}' cassandra-1 

thanks help. :)


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -