Can't connect to cassandra - NoHostAvailableException

后端 未结 5 1012
时光取名叫无心
时光取名叫无心 2020-12-01 20:48

I know there are several threads about the NoHostAvailableException but they simply don\'t provide a solution to my problem.

I can\'t connect to Cassand

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 21:47

    Check your casssandra.yaml file. The native_transport uses the same address binding as the rpc_address. If it is bound to another address than "54.221.241.107" you would get this problem. Try setting it to

    rpc_address: 0.0.0.0 
    

    or to

    rpc_address: 54.221.241.107  
    

    and see if it helps. Keep in mind that ec2-ips might change on restarts.

    My guess is that is is bound to the internal ip of the ec-2. And remember to add some security if you are opening up your database to the public this way :-)

提交回复
热议问题