ERROR Session: Error creating pool to /127.0.0.1:9042

后端 未结 1 1006
情歌与酒
情歌与酒 2021-01-03 13:41

I am trying to insert values in cassandra when I come across this error:

15/08/14 10:21:54 INFO Cluster: New Cassandra host /a.b.c.d:9042 added
15/08/14 10:2         


        
相关标签:
1条回答
  • 2021-01-03 13:57

    I think the problem is your rpc_broadcast_address is set to 127.0.0.1. Is there a reason in particular you are doing this?

    The java driver uses the system.peers table to look up the ip address to use to connect to hosts. If rpc_broadcast_address is set this is what will be present in system.peers and the driver will try to use it. If rpc_broadcast_address is not set, rpc_address will be used. In either case, you'll want to set one of these addresses to an address that will be accessible by your client. If you set rpc_address, you will want to remove broadcast_rpc_address.

    0 讨论(0)
提交回复
热议问题