You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Shahryar Sedghi <sh...@gmail.com> on 2012/06/18 20:29:03 UTC
Setting up a cluster
I am new to Cassandra, and setting up a cluster for the first time with
1.1.1. There are three nodes, 1 acts as a seed node that all three have the
ip address of that node as their seed. I have set the listen address to the
address of each node and rpc address as 0.0.0.0. I turned the trace on on
all three and see the GOSSIP messages between seed node and the other two,
not between the two non-seed nodes, sometime I see connection timeout
between seed node and the nodes but not very often; However nodetool -h
address ring only shows one node in each machine (the localhost) a,d when I
define a keyspace with any replication factor the begin and end token of
the keyspace is the localhost token.
P.S. i have generated tokens for each node.
What did I miss here?
Thanks
Shahryar Sedghi
--
"Life is what happens while you are making other plans." ~ John Lennon
Re: Setting up a cluster
Posted by Abhijit Chanda <ab...@gmail.com>.
Are you sure all your settings are perfect. If so, then plz follow this
steps
./nodetool disablethrift
./nodetool disablegossip
./nodetool drain
stop the service and then delete the all data, saved_caches and commitlog
files. Then restart your service.
Repeat these steps for all the nodes. I hope it will work.
Regards,
--
Abhijit Chanda
VeHere Interactive Pvt. Ltd.
+91-9748888395
Re: Setting up a cluster
Posted by Shahryar Sedghi <sh...@gmail.com>.
I did all you said. No errors and warnings.
On Mon, Jun 18, 2012 at 2:31 PM, aaron morton <aa...@thelastpickle.com>wrote:
> Did you set the cluster name to be the same ?
>
> Check the logs on the machines for errors or warnings.
>
> Finally check that each node can telnet to port 7000 on the others.
>
> Cheers
>
> -----------------
> Aaron Morton
> Freelance Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 19/06/2012, at 6:29 AM, Shahryar Sedghi wrote:
>
> I am new to Cassandra, and setting up a cluster for the first time with
> 1.1.1. There are three nodes, 1 acts as a seed node that all three have the
> ip address of that node as their seed. I have set the listen address to the
> address of each node and rpc address as 0.0.0.0. I turned the trace on on
> all three and see the GOSSIP messages between seed node and the other two,
> not between the two non-seed nodes, sometime I see connection timeout
> between seed node and the nodes but not very often; However nodetool -h
> address ring only shows one node in each machine (the localhost) a,d when I
> define a keyspace with any replication factor the begin and end token of
> the keyspace is the localhost token.
>
> P.S. i have generated tokens for each node.
>
> What did I miss here?
>
> Thanks
>
> Shahryar Sedghi
>
> --
> "Life is what happens while you are making other plans." ~ John Lennon
>
>
>
--
"Life is what happens while you are making other plans." ~ John Lennon
Re: Setting up a cluster
Posted by aaron morton <aa...@thelastpickle.com>.
Did you set the cluster name to be the same ?
Check the logs on the machines for errors or warnings.
Finally check that each node can telnet to port 7000 on the others.
Cheers
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com
On 19/06/2012, at 6:29 AM, Shahryar Sedghi wrote:
> I am new to Cassandra, and setting up a cluster for the first time with 1.1.1. There are three nodes, 1 acts as a seed node that all three have the ip address of that node as their seed. I have set the listen address to the address of each node and rpc address as 0.0.0.0. I turned the trace on on all three and see the GOSSIP messages between seed node and the other two, not between the two non-seed nodes, sometime I see connection timeout between seed node and the nodes but not very often; However nodetool -h address ring only shows one node in each machine (the localhost) a,d when I define a keyspace with any replication factor the begin and end token of the keyspace is the localhost token.
>
> P.S. i have generated tokens for each node.
>
> What did I miss here?
>
> Thanks
>
> Shahryar Sedghi
>
> --
> "Life is what happens while you are making other plans." ~ John Lennon