【问题标题】:9160 port is not opened after starting cassandra9160 启动cassandra后端口未打开
【发布时间】:2014-03-23 20:35:24
【问题描述】:

我已经在 aws vpc 中的 redhat 6.4 ami 上部署了带有 2 个节点的 cassandra(1.2.15)。两个节点都在私有子网中。种子节点工作正常,但是当我在新节点中启动 cassandra 时,我的 9160 端口没有打开。我在新节点和 Listen_addess 和 rpc_addrss 选项的种子节点中给出了私有 IP。 rpc_port 是 9160。现在请告诉我是什么导致了这个问题。 提前致谢。

【问题讨论】:

    标签: amazon-web-services amazon-ec2 cassandra amazon-vpc cassandra-2.0


    【解决方案1】:

    您应确保已在分配给您的 EC2 实例的安全组中打开端口 9160

    【讨论】:

    • 我已经打开了。在种子节点中它工作正常。但新节点它不工作。
    【解决方案2】:

    Creating an EC2 security group 页面上的信息可能会对您有所帮助。

    为您的实例/集群找到安全组或从您的 EC2 仪表板创建一个新安全组: EC2仪表板->网络和安全->安全组

    并使用以下信息为入站端口设置规则:

    Table 1. Public ports
    Port number Source     Description
    22          0.0.0.0/0  SSH port
    8888        0.0.0.0/0  OpsCenter website. The opscenterd daemon listens on this port for HTTP requests coming directly from the browser.
    
    Table 2. Cassandra inter-node ports
    Port number Source     Description
    1024-65535  <Your-SG>  JMX reconnection/loopback ports. See description for port 7199.
    7000        <Your-SG>  Cassandra inter-node cluster communication.
    7199        <Your-SG>  Cassandra JMX monitoring port. After the initial handshake, the JMX protocol requires that the client reconnects on a randomly chosen port (1024+).
    9160        <Your-SG>  Cassandra client port (Thrift).
    
    Table 3. Cassandra OpsCenter ports
    Port number Source     Description
    61620       <Your-SG>  OpsCenter monitoring port. The opscenterd daemon listens on this port for TCP traffic coming from the agent.
    61621       <Your-SG>  OpsCenter agent port. The agents listen on this port for SSL traffic initiated by OpsCenter.
    

    对于公共端口(22 和 8888),保留源字段 0.0.0.0/0,对于其余部分,输入您的安全组的名称 &lt;Your-SG>,以便只有该组中的实例才能参与规则。

    【讨论】:

    • 不鼓励仅链接的答案。请将链接的相关部分拉到此答案中,以便即使链接不可用,也可以使用信息。
    猜你喜欢
    • 1970-01-01
    • 2023-03-22
    • 1970-01-01
    • 2016-01-11
    • 2017-11-10
    • 1970-01-01
    • 2019-12-30
    • 1970-01-01
    • 2017-07-01
    相关资源
    最近更新 更多