在cqlsh中获取Cassandra数据中心名称

41

我该如何在 cqlsh 中获取数据中心的名称?这对于构造函数 DCAwareRoundRobinPolicy 是必需的。

1个回答

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

data_center
-------------
datacenter1 

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接