【问题标题】:Getting Cassandra datacenter name in cqlsh在 cqlsh 中获取 Cassandra 数据中心名称
【发布时间】:2013-10-29 15:34:08
【问题描述】:

如何在cqlsh 中获取数据中心的名称? DCAwareRoundRobinPolicy的构造函数需要。

【问题讨论】:

    标签: cassandra cqlsh


    【解决方案1】:
    cqlsh> use system;
    cqlsh:system> select data_center from local;
    
    data_center
    -------------
    datacenter1 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-11
      • 2014-07-28
      • 2023-03-23
      • 1970-01-01
      • 2017-07-26
      • 2019-05-31
      • 2020-10-05
      • 1970-01-01
      相关资源
      最近更新 更多