You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sergey Panov <pa...@isbc.ru> on 2015/11/26 00:36:28 UTC
Unable to use using multiple network interfaces in Cassandra 3.0
Hello,
We faced with the issue that Cassandra 3.0 does not work when we tried
to set up private and public networks usage.
The following doc was used:
http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configMultiNetworks.html
First node (172.20.30.91) settings
- seeds: "172.20.30.91,172.20.30.92,172.20.30.93"
# private IP
listen_address: 10.12.0.1
# public IP
rpc_address: 172.20.30.91
broadcast_address: 172.20.30.91
internode_compression: none
......
Fourth node (172.20.30.94) settings
- seeds: "172.20.30.91,172.20.30.92,172.20.30.93"
# private IP
listen_address: 10.12.0.4
# public IP
rpc_address: 172.20.30.94
broadcast_address: 172.20.30.94
internode_compression: none
All seeds detects only themself, other nodes show errors:
assandraDaemon.java:702 - Exception encountered during startup
java.lang.RuntimeException: Unable to gossip with any seeds
at
org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1344)
~[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:529)
~[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:777)
~[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.StorageService.initServer(StorageService.java:694)
~[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.StorageService.initServer(StorageService.java:581)
~[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:345)
[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:561)
[apache-cassandra-3.0.0.jar:3.0.0]
at
org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689)
[apache-cassandra-3.0.0.jar:3.0.0]
Please advice. Thank you!
--
Sergey Panov
Re: Unable to use using multiple network interfaces in Cassandra 3.0
Posted by Paulo Motta <pa...@gmail.com>.
Hello Sergey,
Currently Cassandra listens in one interface (the listen_address), so you
can only use multiple interfaces if your NAT configuration can route from
your public IP address to your private interface, as typically happens on
EC2 and other clouds. We're currently working to support listening on
multiple network interfaces to support this use case. You can follow the
progress and get more background on this ticket:
https://issues.apache.org/jira/browse/CASSANDRA-9748. There's a preliminary
patch available if you're willing to patch your Cassandra install.
Regards,
Paulo
2015-11-25 15:36 GMT-08:00 Sergey Panov <pa...@isbc.ru>:
> Hello,
>
> We faced with the issue that Cassandra 3.0 does not work when we tried to
> set up private and public networks usage.
> The following doc was used:
> http://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configMultiNetworks.html
>
> First node (172.20.30.91) settings
> - seeds: "172.20.30.91,172.20.30.92,172.20.30.93"
> # private IP
> listen_address: 10.12.0.1
> # public IP
> rpc_address: 172.20.30.91
> broadcast_address: 172.20.30.91
> internode_compression: none
>
> ......
>
> Fourth node (172.20.30.94) settings
> - seeds: "172.20.30.91,172.20.30.92,172.20.30.93"
> # private IP
> listen_address: 10.12.0.4
> # public IP
> rpc_address: 172.20.30.94
> broadcast_address: 172.20.30.94
> internode_compression: none
>
>
> All seeds detects only themself, other nodes show errors:
>
> assandraDaemon.java:702 - Exception encountered during startup
> java.lang.RuntimeException: Unable to gossip with any seeds
> at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1344)
> ~[apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:529)
> ~[apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:777)
> ~[apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.StorageService.initServer(StorageService.java:694)
> ~[apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.StorageService.initServer(StorageService.java:581)
> ~[apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:345)
> [apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:561)
> [apache-cassandra-3.0.0.jar:3.0.0]
> at
> org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689)
> [apache-cassandra-3.0.0.jar:3.0.0]
>
>
> Please advice. Thank you!
>
> --
>
> Sergey Panov
>
>