سؤال

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

هل كانت مفيدة؟

المحلول

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

data_center
-------------
datacenter1 
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top