Skip to content

Passing "CASSANDRA_RACK" and "CASSANDRA_DC" do nothing #57

@antimack

Description

@antimack

Hi.
I've started up 3 nodes Cassandra 2.1.13 cluster with passing some env variables like:
CASSANDRA_CLUSTER_NAME=mycluster
CASSANDRA_DC=dc2
CASSANDRA_RACK=rack2

but when I'm using "nodetool status" on a first node(seed node in my case) I see default "datacenter1" and "rack1" so it seems that passing this variables don't do nothing

root@39559689ed20:/# cat /etc/cassandra/cassandra-rackdc.properties | egrep -v "^\s*(#|$)"
dc= dc2
rack= rack2
root@39559689ed20:/# nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address      Load       Tokens  Owns (effective)  Host ID                               Rack
UN  192.168.0.4  107.39 KB  256     69.0%             6c39fcc4-a54d-407a-811f-f4bc3d5587b7  rack1
UN  192.168.0.3  120.16 KB  256     67.2%             f04417e4-0124-4eb4-842a-37636a14ab0d  rack1
UN  192.168.0.2  112.63 KB  256     63.8%             65ad3bdb-519e-4568-8370-8f53d0a0fd49  rack1

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