我已经在aws vpc中的redhat 6.4 ami上部署了cassandra(1.2.15)和2个节点。两个节点都在私有子网中。种子节点工作正常,但是当我在新节点中启动cassandra时,我的9160端口没有打开。我已经在Listen_addess和rpc_addrss选项中给出了新节点和种子节点的内网ip。rpc_port为9160。现在请告诉我是什么导致了这个问题。提前谢谢。
发布于 2014-03-24 06:33:37
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),保留Source字段0.0.0.0/0,对于其余端口,输入您的安全组的名称<Your-SG>,这样只有该组中的实例才会参与规则。
发布于 2014-03-24 09:55:04
您应确保已在分配给EC2实例的安全组中打开端口9160。
https://stackoverflow.com/questions/22596714
复制相似问题