【问题标题】:cassandra access from external ip从外部 ip 访问 cassandra
【发布时间】:2018-03-03 02:17:41
【问题描述】:

我已经尝试在 cassandra.yaml 中设置这些:

  1. rpc_address: 192.168.1.xx 监听地址:192.168.1.xx 广播地址:192.168.1.xx

  2. rpc_address: 0.0.0.0 监听地址:192.168.1.xx 广播地址:192.168.1.xx

在这两种情况下,我只能从 localhost (127.0.0.1) 访问

但是当我查看 nodetool 状态时 它显示了这个

[root@localhost conf]# nodetool 状态

-- 地址加载令牌拥有(有效)主机 ID 机架 UN 192.168.1.xx 1.23 MB 256 100.0% cedb8433-a3b3-4fb4-bee7-dae6174712ef rack1

如何正确设置它以供外部访问?

【问题讨论】:

  • 重要提示:更改cassandra.yaml文件中的属性后,必须重启节点才能使更改生效。

标签: cassandra cassandra-3.0


【解决方案1】:

在cassandra.yaml中,设置listen_address为节点的私有IP地址,broadcast_address为节点的公共地址,rpc_address为“0.0.0.0”

请看How to configure cassandra for remote connectionCan't connect to cassandra node from different host

希望这会有所帮助!

谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-13
    • 2020-11-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-10
    • 2012-02-12
    • 2016-08-03
    相关资源
    最近更新 更多