Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E05E101BD for ; Tue, 5 Nov 2013 07:20:16 +0000 (UTC) Received: (qmail 30305 invoked by uid 500); 5 Nov 2013 07:20:12 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 30260 invoked by uid 500); 5 Nov 2013 07:20:12 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 30247 invoked by uid 99); 5 Nov 2013 07:20:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 07:20:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.220.54] (HELO mail-pa0-f54.google.com) (209.85.220.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 07:20:04 +0000 Received: by mail-pa0-f54.google.com with SMTP id fa1so8245247pad.27 for ; Mon, 04 Nov 2013 23:19:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:message-id:mime-version :subject:date:references:to:in-reply-to; bh=OVQVgHsJSoE5BAML7dGxsogkku3H5jk3jMpUVKcoheY=; b=F2Mo836ALCGyojVcf4a7LL60x3hGjGKW3dVCiJzStnIhiKo+ncg0jqnj0AcMbEQPBq nsVZo1J4xaAv7f5GKFDEVlbssmjjyv3R1pPhlaDar2V3moOe6ZsKnrDzZRqaCCvJlA5u HgNdOdWZROTqSjcMIpceGYUbULz8HTznH0KsDjFpvAzxj4DRXaCf+aNJziTQXmeN96Ls YG7XewXEctIW5h5TfORvfowe4LRsVYgww2BpUKiqDcY55gvqxARuk8QPt+7CC8amUtXG 7wyEoRAaGDrdKuRMn/z0anrTMdVDdwyM7aeK7UUP4E+qCr4qYfYlN9bid2y+3HQDA3/E AgPQ== X-Gm-Message-State: ALoCoQkGf9pWxR+A23Y8jLJ3ev5ohTbpAqcyD0580QmD2X04Rk9OQqty3k8X9L1pClbdUkL2bmtr X-Received: by 10.68.229.2 with SMTP id sm2mr21498426pbc.68.1383635982591; Mon, 04 Nov 2013 23:19:42 -0800 (PST) Received: from [172.16.1.20] ([203.86.207.101]) by mx.google.com with ESMTPSA id gf5sm32647638pbc.22.2013.11.04.23.19.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Nov 2013 23:19:41 -0800 (PST) From: Aaron Morton Content-Type: multipart/alternative; boundary="Apple-Mail=_8161109E-B4CC-41A9-B4E1-C3EA95922EA1" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Subject: Re: Not able to form a Cassandra cluster of two nodes in Windows? Date: Tue, 5 Nov 2013 20:19:38 +1300 References: To: Cassandra User In-Reply-To: X-Mailer: Apple Mail (2.1816) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_8161109E-B4CC-41A9-B4E1-C3EA95922EA1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 > My First Node details are -=20 >=20 > initial_token: 0 > seeds: "10.0.0.4" =20 > listen_address: 10.0.0.4 #IP of Machine - A (Wireless LAN = adapter Wireless Network Connection) > rpc_address: 10.0.0.4 >=20 > My Second Node details are -=20 >=20 > initial_token: 0 > seeds: "10.0.0.4" =20 > listen_address: 10.0.0.7 #IP of Machine - B (Wireless LAN = adapter Wireless Network Connection) > rpc_address: 10.0.0.7 >=20 You cannot have two nodes with the same tokens, is there an error in the = logs ?=20 if you are just starting put the simple thing is delete all the data and = restart the machines.=20 Hope that helps.=20 ----------------- Aaron Morton New Zealand @aaronmorton Co-Founder & Principal Consultant Apache Cassandra Consulting http://www.thelastpickle.com On 2/11/2013, at 6:02 am, Techy Teck wrote: > In my case, both of my laptop are running Windows 7 64 bit.. Not sure = what's the problem... >=20 >=20 > On Fri, Nov 1, 2013 at 4:48 AM, Aaron Mintz = wrote: > One issue I ran into that produced similar symptoms: if you have = internode_compression turned on without the proper snappy library = available for your architecture (i had 64-bit linux), starting up will = fail to link the nodes. It'll also be silent unless you set a certain = class logging level to DEBUG, but it basically presented as if nodes = would each form their own single-machine ring >=20 >=20 > On Fri, Nov 1, 2013 at 3:52 AM, Techy Teck = wrote: > I am trying to setup two nodes of Cassandra cluster on my windows = machine. Basically, I have two windows machine. In both of my machine, I = have installed Cassandra 1.2.11 from Datastax. Now I was following this = [tutorial](http://www.datastax.com/2012/01/how-to-setup-and-monitor-a-mult= i-node-cassandra-cluster-on-windows) to setup two node Cassandra = Cluster. >=20 > After installing Cassandra into those two machines, I stopped the = services for the Cassandra server, DataStax OpsCenter, and the DataStax = OpsCenter agent in those two machines..=20 >=20 > And then I started making changes in the yaml file -=20 >=20 > My First Node details are -=20 >=20 > initial_token: 0 > seeds: "10.0.0.4" =20 > listen_address: 10.0.0.4 #IP of Machine - A (Wireless LAN = adapter Wireless Network Connection) > rpc_address: 10.0.0.4 >=20 > My Second Node details are -=20 >=20 > initial_token: 0 > seeds: "10.0.0.4" =20 > listen_address: 10.0.0.7 #IP of Machine - B (Wireless LAN = adapter Wireless Network Connection) > rpc_address: 10.0.0.7 > =20 > Both of my serves gets started up properly after I start the services = for server. But they are not forming a cluster of two nodes somehow? Is = there anything I am missing here? >=20 > Machine-A Nodetool Information- >=20 > Datacenter: datacenter1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Replicas: 1 > =20 > Address Rack Status State Load Owns = Token > =20 > =20 > 10.0.0.4 rack1 Up Normal 212.1 KB 100.00% = 5264744098649860606 >=20 > Machine-B Nodetool Information- >=20 > Starting NodeTool > =20 > Datacenter: datacenter1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Replicas: 1 > =20 > Address Rack Status State Load Owns = Token > =20 > =20 > 10.0.0.7 rack1 Up Normal 68.46 KB 100.00% = 407804996740764696 > =20 >=20 >=20 >=20 --Apple-Mail=_8161109E-B4CC-41A9-B4E1-C3EA95922EA1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
My First Node details are = - 

    initial_token: 0
    seeds: = "10.0.0.4"  
    listen_address: 10.0.0.4   = #IP of Machine - A (Wireless LAN adapter Wireless Network = Connection)
    rpc_address: 10.0.0.4

My Second Node = details are - 

    initial_token: 0
  =   seeds: "10.0.0.4"    
    = listen_address: 10.0.0.7   #IP of Machine - B (Wireless LAN adapter = Wireless Network Connection)
    rpc_address: = 10.0.0.7


You cannot have = two nodes with the same tokens, is there an error in the logs = ? 

if you are just starting put the simple = thing is delete all the data and restart the = machines. 

Hope that = helps. 

http://www.thelastpickle.com

On 2/11/2013, at 6:02 am, Techy Teck <comptechgeeky@gmail.com> = wrote:

In my case, both of my laptop are running = Windows 7 64 bit.. Not sure what's the problem...


On Fri, Nov 1, = 2013 at 4:48 AM, Aaron Mintz <aaron.m.mintz@gmail.com> wrote:
One issue I ran into that produced similar = symptoms: if you have internode_compression turned on without the proper = snappy library available for your architecture (i had 64-bit linux), = starting up will fail to link the nodes. It'll also be silent unless you = set a certain class logging level to DEBUG, but it basically presented = as if nodes would each form their own single-machine ring


On Fri, Nov 1, = 2013 at 3:52 AM, Techy Teck <comptechgeeky@gmail.com> wrote:
I am trying to setup two nodes of Cassandra = cluster on my windows machine. Basically, I have two windows machine. In = both of my machine, I have installed Cassandra 1.2.11 from Datastax. Now = I was following this [tutorial](http://www.datastax.com/2012/01/how-to-setup-and-monitor= -a-multi-node-cassandra-cluster-on-windows) to setup two node = Cassandra Cluster.

After installing Cassandra into those two machines, I stopped the = services for the Cassandra server, DataStax OpsCenter, and the DataStax = OpsCenter agent in those two machines..

And then I started = making changes in the yaml file -

My First Node details are -

    = initial_token: 0
    seeds: "10.0.0.4"  =
    listen_address: 10.0.0.4   #IP of = Machine - A (Wireless LAN adapter Wireless Network = Connection)
    rpc_address: 10.0.0.4

My Second Node details are -

    = initial_token: 0
    seeds: = "10.0.0.4"   
    listen_address: = 10.0.0.7   #IP of Machine - B (Wireless LAN adapter Wireless = Network Connection)
    rpc_address: 10.0.0.7
   
Both of my serves gets started up properly after = I start the services for server. But they are not forming a cluster of = two nodes somehow? Is there anything I am missing here?

Machine-A = Nodetool Information-

    Datacenter: datacenter1
    = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    Replicas: = 1
   
    Address   = Rack        Status State   = Load            = Owns           &nbs= p;    Token
   
    =
    10.0.0.4  = rack1       Up     = Normal  212.1 KB        = 100.00%           &= nbsp; 5264744098649860606

Machine-B Nodetool Information-

    Starting = NodeTool
   
    Datacenter: = datacenter1
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 =    Replicas: 1
   
    = Address   Rack        = Status State   = Load            = Owns           &nbs= p;    Token
   
   
    = 10.0.0.7  rack1       = Up     Normal  68.46 = KB        = 100.00%           &= nbsp; 407804996740764696
   




= --Apple-Mail=_8161109E-B4CC-41A9-B4E1-C3EA95922EA1--