Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 405CC200C39 for ; Thu, 16 Mar 2017 12:49:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3EFEE160B7A; Thu, 16 Mar 2017 11:49:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 609B2160B78 for ; Thu, 16 Mar 2017 12:49:33 +0100 (CET) Received: (qmail 55039 invoked by uid 500); 16 Mar 2017 11:49:31 -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 55029 invoked by uid 99); 16 Mar 2017 11:49:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2017 11:49:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6929A18F161 for ; Thu, 16 Mar 2017 11:49:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=textkernel.nl Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id H_2zRiFHv-uu for ; Thu, 16 Mar 2017 11:49:29 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D977C5FB79 for ; Thu, 16 Mar 2017 11:49:28 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id g138so39450891itb.0 for ; Thu, 16 Mar 2017 04:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=textkernel.nl; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=iFIgGaZdAN7l8wCTAHrK3/Pzy7ok1kNdX06xopf1zA4=; b=Pv5ZsxQIZ76nk5pgUFwyIZ5LAP57SVTNf0Q5Zx1yG/DmqNCr1SMpcqb+Z0xykZ40Ek fHvmbgITAi/VIebpFelNtQiRth9+mAjqOWPAbd2jiRZGbzLFuxfFvOaJWRn6LajH6ot+ exClwQYKpWCweZVsaitRpOXkYg0542VTSdD4c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=iFIgGaZdAN7l8wCTAHrK3/Pzy7ok1kNdX06xopf1zA4=; b=W029j2au+uIrgidr/agd+V/k5bne2Jll5YlFsaCW4gPIlFLHtTizf+PwIFdk9K0ows fuW703h5lI6XvBfL8MFEE9NJixoWB684OR+yIh+of5lLHHUu3woHJHCOv7th7EISOmFd P7hgExCz/PMcIr0O7p2UPuJYALnDazG+Qy7WHqZiqHRPnnmEVCLz8P0j9WjPtR5P7wCS B2WHHqzpUWwg23we2rX5BYy0ktoOkwby7LwYW91C1VHlJonCPV5yYM7t1916XSzUfeuk K11BcxDDLXJUZyRMj3uXtg8cGfmlJdXWHn3MT5fpt0nGfItvIBXgXgeG4fYyzFEQsLEt iKAg== X-Gm-Message-State: AFeK/H11+qbT8JhGnywXrqgapi1Y7XyoflitVfjQboPCTuL3hSkdgNzj7igrPjw0QGiermw8FZFCNYUtKzZ5kV0Q X-Received: by 10.107.35.198 with SMTP id j189mr8968290ioj.76.1489664964483; Thu, 16 Mar 2017 04:49:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.140.163 with HTTP; Thu, 16 Mar 2017 04:49:23 -0700 (PDT) In-Reply-To: References: From: George Sigletos Date: Thu, 16 Mar 2017 12:49:23 +0100 Message-ID: Subject: Re: Change the IP of a live node To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a1140ee9e0b2db5054ad7a70f archived-at: Thu, 16 Mar 2017 11:49:34 -0000 --001a1140ee9e0b2db5054ad7a70f Content-Type: text/plain; charset=UTF-8 This was a network problem at our side after all which we fixed. Cassandra was blocking connections between 192.168.xxx <-> 10.179.xxx on port 7000 On Wed, Mar 15, 2017 at 2:47 PM, Ryan Svihla wrote: > I've actually changed the ip address quite a bit (gossip complains on > startup and happily picks up the new address), I think this maybe easier > such as..can those ip addresses route to one another ? > > As in can the first node with 192.168.xx.xx hit the node with > 10.179.xx.xx on that interface? > > On Wed, Mar 15, 2017 at 9:37 AM, kurt greaves > wrote: > >> Cassandra uses the IP address for more or less everything. It's possible >> to change it through some hackery however probably not a great idea. The >> nodes system tables will still reference the old IP which is likely your >> problem here. >> >> On 14 March 2017 at 18:58, George Sigletos >> wrote: >> >>> To give a complete picture, my node has actually two network interfaces: >>> eth0 for 192.168.xx.xx and eth1 for 10.179.xx.xx >>> >>> On Tue, Mar 14, 2017 at 7:46 PM, George Sigletos >> > wrote: >>> >>>> Hello, >>>> >>>> I am trying to change the IP of a live node (I am not replacing a dead >>>> one). >>>> >>>> So I stop the service on my node (not a seed node), I change the IP >>>> from 192.168.xx.xx to 10.179.xx.xx, and modify "listen_address" and >>>> "rpc_address" in the cassandra.yaml, while I also set auto_bootstrap: >>>> false. Then I restart but it fails to see the rest of the cluster: >>>> >>>> Datacenter: DC1 >>>> =============== >>>> Status=Up/Down >>>> |/ State=Normal/Leaving/Joining/Moving >>>> -- Address Load Tokens Owns Host >>>> ID Rack >>>> DN 192.168.xx.xx ? 256 ? >>>> 241f3002-8f89-4433-a521-4fa4b070b704 r1 >>>> UN 10.179.xx.xx 3.45 TB 256 ? >>>> 3b07df3b-683b-4e2d-b307-3c48190c8f1c RAC1 >>>> DN 192.168.xx.xx ? 256 ? >>>> 19636f1e-9417-4354-8364-6617b8d3d20b r1 >>>> DN 192.168.xx.xx ? 256 ? >>>> 9c65c71c-f5dd-4267-af9e-a20881cf3d48 r1 >>>> DN 192.168.xx.xx ? 256 ? >>>> ee75219f-0f2c-4be0-bd6d-038315212728 r1 >>>> >>>> Am I doing anything wrong? Thanks in advance >>>> >>>> Kind regards, >>>> George >>>> >>> >>> >> > > > -- > > Thanks, > Ryan Svihla > > --001a1140ee9e0b2db5054ad7a70f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This was a network problem at our side after all which we = fixed. Cassandra was blocking connections between 192.168.xxx <-> 10.= 179.xxx on port 7000

On Wed, Mar 15, 2017 at 2:47 PM, Ryan Svihla <rs@foundev.pro= > wrote:
I'= ;ve actually changed the ip address quite a bit (gossip complains on startu= p and happily picks up the new address), =C2=A0I think this maybe easier su= ch as..can those ip addresses route to one another ?

As = in can the first node with=C2=A0192.168.xx= .xx hit the node with 10.179.xx.xx on that interface?

On Wed, Mar 15, 2017 at 9:37 AM, kurt greaves <kurt@instaclustr.com<= /a>> wrote:
Ca= ssandra uses the IP address for more or less everything. It's possible = to change it through some hackery however probably not a great idea. The no= des system tables will still reference the old IP which is likely your prob= lem here.

On 14 March 2017 at 18:58, George Sigletos <<= a href=3D"mailto:sigletos@textkernel.nl" target=3D"_blank">sigletos@textker= nel.nl> wrote:
To give a complete picture, my node has actually two network interface= s: eth0 for 192.168.xx.xx and eth1 for 10.179.xx.xx

On Tue, Mar 14, 2017 at 7:46 PM, George Sigletos <s= igletos@textkernel.nl> wrote:
Hello,

I am trying to = change the IP of a live node (I am not replacing a dead one).

So I = stop the service on my node (not a seed node), I change the IP from 192.168= .xx.xx to 10.179.xx.xx, and modify "listen_address" and "rpc= _address" in the cassandra.yaml, while I also set auto_bootstrap: fals= e. Then I restart but it fails to see the rest of the cluster:

Datac= enter: DC1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Status=3DUp/= Down
|/ State=3DNormal/Leaving/Joining/Moving
--=C2=A0 Address= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Load=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 Tokens=C2=A0 Owns=C2=A0=C2=A0=C2=A0 Host ID=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Rack
DN=C2=A0 192.168.xx.xx=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 256=C2=A0=C2=A0=C2=A0=C2=A0 ?=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 241f3002-8f89-4433-a521-4fa4b070b704=C2=A0 r1=
UN=C2=A0 10.179.xx.xx=C2=A0 3.45 TB=C2=A0=C2=A0=C2=A0 256=C2=A0=C2=A0= =C2=A0=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 3b07df3b-683b-4e2d-b307-= 3c48190c8f1c=C2=A0 RAC1
DN=C2=A0 192.168.xx.xx=C2=A0 ?=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 256=C2=A0=C2=A0=C2=A0=C2=A0 ?=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 19636f1e-9417-4354-8364-6617b8d3d20b= =C2=A0 r1
DN=C2=A0 192.168.xx.xx =C2=A0=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 256=C2=A0=C2=A0=C2=A0=C2=A0 ?=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 9c65c71c-f5dd-4267-af9e-a20881cf3d48=C2=A0 r1DN=C2=A0 192.168.xx.xx =C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 256=C2=A0=C2=A0=C2=A0=C2=A0 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ee75219f-0f2c-4be0-bd6d-038315212728=C2=A0 r1

Am I do= ing anything wrong? Thanks in advance

Kind regards,
G= eorge





<= /div>--

Thanks,

Ryan Svihla

=

--001a1140ee9e0b2db5054ad7a70f--