Data center name is there in two file , if you are using gossip as
GossipingPropertyFileSnitch
in Cassandra.yaml then data center name is in  cassandra-rackdc.properties

If you are using
PropertyFileSnitch  in Cassandra.yaml then file name where data center name
is Cassandra-topology.properties file
On Monday, October 10, 2016, Ali Akhtar <ali.rac...@gmail.com> wrote:

> So I see this:
>
> cluster_name: 'Test Cluster'
>
> But when I grep -i or ctrl + f for 'datacenter1` in cassandra.yaml, I
> don't see that anywhere except in a comment.
>
>
> Yet when I do nodetool status, I see: datacenter1
>
> And unless I define my replication as: '{'class':
> 'NetworkTopologyStrategy', 'datacenter1' : 3}' when creating my keyspace,
> my inserts / selects don't work because it says 0 replicas available (i.e
> if i use anything other than 'datacenter1' in the above stmt)
>
> I don't see 'datacenter1' in rackdc.properties. So my question is, which
> file contains 'datacenter1'?
>
> On Tue, Oct 11, 2016 at 12:54 AM, Adam Hutson <a...@datascale.io
> <javascript:_e(%7B%7D,'cvml','a...@datascale.io');>> wrote:
>
>> There is a cluster name in the cassandra.yaml for naming the cluster, aka
>> data center. Then you assign keyspaces to the data center within the CREATE
>> KEYSPACE stmt with NetworkTopology.
>>
>>
>> On Monday, October 10, 2016, Ali Akhtar <ali.rac...@gmail.com
>> <javascript:_e(%7B%7D,'cvml','ali.rac...@gmail.com');>> wrote:
>>
>>> Where can I change the default name 'datacenter1'? I've looked through
>>> the configuration files in /etc/cassandra , and can't find where this value
>>> is being defined.
>>>
>>
>>
>> --
>>
>> Adam Hutson
>> Data Architect | DataScale
>> +1 (417) 224-5212
>> a...@datascale.io <javascript:_e(%7B%7D,'cvml','a...@datascale.io');>
>>
>
>

Reply via email to