Hi Peter, I made changes as per ur patch. Still its nt working. Using external ip in Listen addr gives this exception.
ERROR 11:47:14,092 Exception encountered during startup. java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) at org.apache.cassandra.net.MessagingService.listen(MessagingService.java:138) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:319) at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:99) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177) Exception encountered during startup. java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:70) at org.apache.cassandra.net.MessagingService.listen(MessagingService.java:138) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:319) at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:99) at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177) So i kept them blank. Cassandra runs. Bt still not showing nodes of other regions in nodetool cmd, whereas i am able to ping and telnet. Thanks, Himanshi Sharma From: Peter Fales <peter.fa...@alcatel-lucent.com> To: "dev@cassandra.apache.org" <dev@cassandra.apache.org> Date: 02/24/2011 06:44 PM Subject: Re: Cassandra nodes on EC2 in two different regions not communicating I sent a note mentioning this yesterday and referring to my post from last September. See: http://www.mail-archive.com/user@cassandra.apache.org/msg05692.html On Thu, Feb 24, 2011 at 07:04:03AM -0600, Himanshi Sharma wrote: > Peter, > > Please tell me the options. I m new to cassandra and definitely want to > try out. > > Thanks, > Himanshi > > > > > From: > Peter Fales <peter.fa...@alcatel-lucent.com> > To: > "dev@cassandra.apache.org" <dev@cassandra.apache.org> > Date: > 02/24/2011 06:30 PM > Subject: > Re: Cassandra nodes on EC2 in two different regions not communicating > > > > It's pretty easy to do if you're willing/able to make some small changes > to the Cassandra code. Is that an option? > > On Thu, Feb 24, 2011 at 06:52:24AM -0600, Himanshi Sharma wrote: > > Hi All, > > > > I am trying to configure a cassandra cluster of 2 nodes in different > > regions of amazon ec2. > > > > Nodes are running fine but when i try nodetool command with ring option > i > > get single node. > > > > And both the nodes are able to ping each other, telnet each other. Not > > able to figure out what is the problem. > > > > Plz help > > > > Thanks, > > Himanshi Sharma > > > > =====-----=====-----===== > > Notice: The information contained in this e-mail > > message and/or attachments to it may contain > > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > > review, distribution, printing or copying of the > > information contained in this e-mail message > > and/or attachments to it are strictly prohibited. If > > you have received this communication in error, > > please notify us by reply e-mail or telephone and > > immediately and permanently delete the message > > and any attachments. Thank you > > > > -- > Peter Fales > Alcatel-Lucent > Member of Technical Staff > 1960 Lucent Lane > Room: 9H-505 > Naperville, IL 60566-7033 > Email: peter.fa...@alcatel-lucent.com > Phone: 630 979 8031 > > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > -- Peter Fales Alcatel-Lucent Member of Technical Staff 1960 Lucent Lane Room: 9H-505 Naperville, IL 60566-7033 Email: peter.fa...@alcatel-lucent.com Phone: 630 979 8031 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you