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
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 :-)