41

How can I get the name of the datacenter in cqlsh? It's required for the constructor of DCAwareRoundRobinPolicy.

palacsint
  • 28,416
  • 10
  • 82
  • 109

1 Answers1

76
cqlsh> use system;
cqlsh:system> select data_center from local;

data_center
-------------
datacenter1 
palacsint
  • 28,416
  • 10
  • 82
  • 109