Re: Cassandra nodes on EC2 in two different regions not communicating

2011-03-23 Thread Himanshi Sharma
Hello All,

My problem with Cassandra across region is solved. Thanks to Milind and 
Peter.

I was editing the Source, the two files MessagingService.java and 
OutboundTcpConnection.java correctly and even was able to build it 
successfully
by referring the patch on 
http://www.mail-archive.com/user@cassandra.apache.org/msg05692.html. 

The problem was with the cassandra.yaml.

In rpc_address filed, private ip should be used and in listen_address it 
should be public. I was trying with public ip in both the fields as well 
as by keeping both blank.

Regards,
Himanshi Sharma




From:
Peter Fales 
To:
"dev@cassandra.apache.org" 
Date:
02/28/2011 06:25 PM
Subject:
Re: Cassandra nodes on EC2 in two different regions not communicating



Are you sure you actually re-built Cassandra after making those source
code changes?   I believe "Cannot assign requested address" is the error 
you
get with the official Cassandra because the external IP address is 
not the actual address of an adapter.   The patches change the code
so that it listens on all interfaces (so it should not actually be
requesting a specific address)

On Mon, Feb 28, 2011 at 06:23:53AM -0600, Himanshi Sharma wrote:
> 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 
> To:
> "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 
> > To:
> > "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, 
> > > pleas

Jenkins build became unstable: Cassandra-Coverage #12

2011-03-23 Thread Apache Hudson Server
See 




Jenkins build is back to normal : Cassandra-0.7-Coverage #9

2011-03-23 Thread Apache Hudson Server
See 




Incremental counters

2011-03-23 Thread Ian Holsman
Hi.

apologies in advance, as I haven't been keeping current on what is going on in 
cassandra-land for a while.

I noticed that incremental counters have been added to 0.8/Trunk in 
CASSANDRA-1072.

I was wondering if this (and supporting patches?) could be easily applied to 
0.74, or if the current trunk is stable enough to use.

I think twitter is using this in their Rainman product.. ideally they will 
release that soon as well ;-)



Thanks in advance
--Ian

Re: Incremental counters

2011-03-23 Thread Robert Coli
On Wed, Mar 23, 2011 at 7:55 PM, Ian Holsman  wrote:
> I was wondering if this (and supporting patches?) could be easily applied to 
> 0.74, or if the current trunk is stable enough to use.
>
> I think twitter is using this in their Rainman product.. ideally they will 
> release that soon as well ;-)

https://github.com/kakugawa/cassandra/tree/twttr-cassandra-0.7-counts

Contains a version of 0.7 with a version of the counters patch
applied. Twitter could speak to whether they are likely to continue to
update this public branch..

=Rob
PS - note that unless that version contains
https://issues.apache.org/jira/browse/CASSANDRA-1938, you will have to
dump and reload counts when you get to a version which does contain
it.


Re: Incremental counters

2011-03-23 Thread Chris Goffinet
We no longer backport to 0.7. We're on 0.8/trunk at the moment.

-Chris

On Mar 23, 2011, at 9:02 PM, Robert Coli wrote:

> On Wed, Mar 23, 2011 at 7:55 PM, Ian Holsman  wrote:
>> I was wondering if this (and supporting patches?) could be easily applied to 
>> 0.74, or if the current trunk is stable enough to use.
>> 
>> I think twitter is using this in their Rainman product.. ideally they will 
>> release that soon as well ;-)
> 
> https://github.com/kakugawa/cassandra/tree/twttr-cassandra-0.7-counts
> 
> Contains a version of 0.7 with a version of the counters patch
> applied. Twitter could speak to whether they are likely to continue to
> update this public branch..
> 
> =Rob
> PS - note that unless that version contains
> https://issues.apache.org/jira/browse/CASSANDRA-1938, you will have to
> dump and reload counts when you get to a version which does contain
> it.



Re: Incremental counters

2011-03-23 Thread Jonathan Ellis
The bad news is that counters are considered too invasive to backport
to 0.7.  Original patch was 250KB and there have been several
nontrivial changes since.

The good news is that 0.8 is planned for early May.

On Wed, Mar 23, 2011 at 9:55 PM, Ian Holsman  wrote:
> Hi.
>
> apologies in advance, as I haven't been keeping current on what is going on 
> in cassandra-land for a while.
>
> I noticed that incremental counters have been added to 0.8/Trunk in 
> CASSANDRA-1072.
>
> I was wondering if this (and supporting patches?) could be easily applied to 
> 0.74, or if the current trunk is stable enough to use.
>
> I think twitter is using this in their Rainman product.. ideally they will 
> release that soon as well ;-)
>
>
>
> Thanks in advance
> --Ian



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com