You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sai Kumar Ganji <sa...@gmail.com> on 2013/04/16 11:33:26 UTC

Configuring 2 node Cassandra cluster

Hello Guys,

I am trying to setup a 2 node Cassandra clustesr.

My parameters are:

*Node1(ip1):*

initial_token: 0
rpc_address: ip1
listen_address: ip1
seeds: “ip1"

*Node2(ip2):*

initial_token: 85070591730234615865843651857942052864
rpc_address: ip1
listen_address: ip1
seeds: “ip1"

and in Node2 *auto_bootstrap: true;*
*
*
Then when i try to run:* **/usr/lib/apache-cassandra/bin/nodetool -host
localhost ring*
*
*
I get this error:

*Failed to connect to 'localhost:7199': Connection refused ; * on both
nodes.

Can you help here please.

Also when I create a key space and a column family in Node1, how can I
access this data from Node2 ?



-- 
Thanks & Regards

Venkata Sai Ganji
Graduate Student
Dept of Computer Science
Montana State University - Bzn

Re: Configuring 2 node Cassandra cluster

Posted by Edward Capriolo <ed...@gmail.com>.
If you are using a two node cassandra cluster locally use ccm, it builds
all the configuration files for you.

https://github.com/pcmanus/ccm


On Tue, Apr 16, 2013 at 11:06 AM, Alicia Leong <lc...@gmail.com> wrote:

>
>
> *Node2(ip2):*
>
> initial_token: 85070591730234615865843651857942052864
> rpc_address: ip*1*       <---- Should be  *ip2*
> listen_address: ip*1*    <---- Should be  *ip2*
> seeds: “ip1"
>
>
> On Tue, Apr 16, 2013 at 5:43 PM, Alain RODRIGUEZ <ar...@gmail.com>wrote:
>
>> Could we have the logs after starting each node ?
>>
>>
>> 2013/4/16 Sai Kumar Ganji <sa...@gmail.com>
>>
>>> Hello Guys,
>>>
>>> I am trying to setup a 2 node Cassandra clustesr.
>>>
>>> My parameters are:
>>>
>>> *Node1(ip1):*
>>>
>>> initial_token: 0
>>> rpc_address: ip1
>>> listen_address: ip1
>>> seeds: “ip1"
>>>
>>> *Node2(ip2):*
>>>
>>> initial_token: 85070591730234615865843651857942052864
>>> rpc_address: ip1
>>> listen_address: ip1
>>> seeds: “ip1"
>>>
>>> and in Node2 *auto_bootstrap: true;*
>>> *
>>> *
>>> Then when i try to run:* **/usr/lib/apache-cassandra/bin/nodetool -host
>>> localhost ring*
>>> *
>>> *
>>> I get this error:
>>>
>>> *Failed to connect to 'localhost:7199': Connection refused ; * on both
>>> nodes.
>>>
>>> Can you help here please.
>>>
>>> Also when I create a key space and a column family in Node1, how can I
>>> access this data from Node2 ?
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>
>>> Venkata Sai Ganji
>>> Graduate Student
>>> Dept of Computer Science
>>> Montana State University - Bzn
>>>
>>
>>
>

Re: Configuring 2 node Cassandra cluster

Posted by Alicia Leong <lc...@gmail.com>.
*Node2(ip2):*

initial_token: 85070591730234615865843651857942052864
rpc_address: ip*1*       <---- Should be  *ip2*
listen_address: ip*1*    <---- Should be  *ip2*
seeds: “ip1"


On Tue, Apr 16, 2013 at 5:43 PM, Alain RODRIGUEZ <ar...@gmail.com> wrote:

> Could we have the logs after starting each node ?
>
>
> 2013/4/16 Sai Kumar Ganji <sa...@gmail.com>
>
>> Hello Guys,
>>
>> I am trying to setup a 2 node Cassandra clustesr.
>>
>> My parameters are:
>>
>> *Node1(ip1):*
>>
>> initial_token: 0
>> rpc_address: ip1
>> listen_address: ip1
>> seeds: “ip1"
>>
>> *Node2(ip2):*
>>
>> initial_token: 85070591730234615865843651857942052864
>> rpc_address: ip1
>> listen_address: ip1
>> seeds: “ip1"
>>
>> and in Node2 *auto_bootstrap: true;*
>> *
>> *
>> Then when i try to run:* **/usr/lib/apache-cassandra/bin/nodetool -host
>> localhost ring*
>> *
>> *
>> I get this error:
>>
>> *Failed to connect to 'localhost:7199': Connection refused ; * on both
>> nodes.
>>
>> Can you help here please.
>>
>> Also when I create a key space and a column family in Node1, how can I
>> access this data from Node2 ?
>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Venkata Sai Ganji
>> Graduate Student
>> Dept of Computer Science
>> Montana State University - Bzn
>>
>
>

Re: Configuring 2 node Cassandra cluster

Posted by Alain RODRIGUEZ <ar...@gmail.com>.
Could we have the logs after starting each node ?


2013/4/16 Sai Kumar Ganji <sa...@gmail.com>

> Hello Guys,
>
> I am trying to setup a 2 node Cassandra clustesr.
>
> My parameters are:
>
> *Node1(ip1):*
>
> initial_token: 0
> rpc_address: ip1
> listen_address: ip1
> seeds: “ip1"
>
> *Node2(ip2):*
>
> initial_token: 85070591730234615865843651857942052864
> rpc_address: ip1
> listen_address: ip1
> seeds: “ip1"
>
> and in Node2 *auto_bootstrap: true;*
> *
> *
> Then when i try to run:* **/usr/lib/apache-cassandra/bin/nodetool -host
> localhost ring*
> *
> *
> I get this error:
>
> *Failed to connect to 'localhost:7199': Connection refused ; * on both
> nodes.
>
> Can you help here please.
>
> Also when I create a key space and a column family in Node1, how can I
> access this data from Node2 ?
>
>
>
> --
> Thanks & Regards
>
> Venkata Sai Ganji
> Graduate Student
> Dept of Computer Science
> Montana State University - Bzn
>