14
如何獲得cqlsh
中數據中心的名稱? 它是DCAwareRoundRobinPolicy
的構造函數所必需的。在cqlsh中獲取Cassandra數據中心名稱
如何獲得cqlsh
中數據中心的名稱? 它是DCAwareRoundRobinPolicy
的構造函數所必需的。在cqlsh中獲取Cassandra數據中心名稱
cqlsh> use system;
cqlsh:system> select data_center from local;
data_center
-------------
datacenter1