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: ",,"
          - seeds: "192.168.56.110"

12.6.3 重启Cassandra即可

这里写图片描述本节完成

长按关注从入门到精通

12.6 Cassandra开启远程连接_第1张图片
源码获取 https://github.com/wangxiaoleiAI/big-data

你可能感兴趣的:(Cassandra,大数据)