12.6 Cassandra開啓遠程連接

12.6 Cassandra開啓遠程連接

卜算子·大數據”一個開源、成體系的大數據學習教程。——每週日更新

本節主要內容:

  • Cassandra開啓遠程連接

12.6.1 修改Cassandra配置文件

vim cassandra.yaml

12.6.2 修改如下內容

start_rpc: true
listen_address: 192.168.56.110
rpc_address: 0.0.0.0
broadcast_rpc_address: 192.168.56.110
seed_provider:
    # Addresses of hosts that are deemed contact points.
    # Cassandra nodes use this list of hosts to find each other and learn
    # the topology of the ring.  You must change this if you are running
    # multiple nodes!
    - class_name: org.apache.cassandra.locator.SimpleSeedProvider
      parameters:
          # seeds is actually a comma-delimited list of addresses.
          # Ex: "<ip1>,<ip2>,<ip3>"
          - seeds: "192.168.56.110"

12.6.3 重啓Cassandra即可

這裏寫圖片描述本節完成

長按關注從入門到精通

這裏寫圖片描述
源碼獲取 https://github.com/wangxiaoleiAI/big-data

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章