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 1EA47200AE4 for ; Fri, 10 Jun 2016 06:22:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 168E2160A59; Fri, 10 Jun 2016 04:22:54 +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 37327160A58 for ; Fri, 10 Jun 2016 06:22:53 +0200 (CEST) Received: (qmail 99899 invoked by uid 500); 10 Jun 2016 04:22:51 -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 99889 invoked by uid 99); 10 Jun 2016 04:22:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 04:22:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2D34DC0920 for ; Fri, 10 Jun 2016 04:22:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.979 X-Spam-Level: * X-Spam-Status: No, score=1.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=instaclustr-com.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2OtfrJEEvLIv for ; Fri, 10 Jun 2016 04:22:48 +0000 (UTC) Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 303BE5F19D for ; Fri, 10 Jun 2016 04:22:48 +0000 (UTC) Received: by mail-yw0-f170.google.com with SMTP id c72so56545895ywb.1 for ; Thu, 09 Jun 2016 21:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=instaclustr-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ga3Tai/xZmvoFDSmj4NqYGhwFEy+r4RHYC/n3QNme60=; b=mcZaQ5RZcxNJWR1C0letHCjzPi1aMAklVN9fGPGV1MQjX4DNzRCiDHV2ETvJiFZTMc /XKz7AxRsCKy8g3IgbcGnfPY7IWMemu/FoOXRVikPXIKADaRGT52QDsDrnGhN73eBvxC KT+DjKBK9SP10NeZKeKrFBPYm20pDE+XnZyot2N8YkzmjEsWbdk2SCGY2k5PCfzbSodF 77YqrIn8OaTZgvYwbRjVr1l6wek46+PXRjKljbD8MpmPzMARagks6W5eOnuqsFsQj84r 8nhmj4QeGq8uYYQk64GlyEZguplxy5LeyllX8L0oEyftK3azJzgcvjow2Rj8L+pkY5cS BwVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ga3Tai/xZmvoFDSmj4NqYGhwFEy+r4RHYC/n3QNme60=; b=YQaXhSrg8wmuwW7hyAn8svnkDMYLdSgtNwcyNqADEofvp7WLYowqbvF9vRHOwnfKw+ gqjzTDibJVMfG0HB4YViEZ2YAgJb/+qtW5iOz+NDX/hFIGmsH64Oh6CrHh43K0yZyOMN MWamylSOZzzoad9BfPOoAWt+VCu9cml7bXpp6xV+BNQw8AkoBn9YS7SmveggowOH1Byl UC6q9XvHZMunxfO6kzUGcYKekBi8KK3LVD5Nb6zSu/NBiTrt5wAxoAu84NGzsVQdDYko kXkmpwF72h/7nKKsw15SxJ0WFg9LFNyxSVHA9AIH75W3n2eCwQpFWBoRvKFymMSwM0Ma pU+A== X-Gm-Message-State: ALyK8tLGMZJIyavs9gv6WIs8JdFpfzOxmsSctVIgxQYzLeCCXfgWqgDoNhsKbyRbA1nqSpGT4eGTTsB/g/aRshUl X-Received: by 10.129.84.193 with SMTP id i184mr8581358ywb.285.1465532561119; Thu, 09 Jun 2016 21:22:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ben Slater Date: Fri, 10 Jun 2016 04:22:31 +0000 Message-ID: Subject: Re: Empty snapshot created To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114d9a50b6ab660534e4e35c archived-at: Fri, 10 Jun 2016 04:22:54 -0000 --001a114d9a50b6ab660534e4e35c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable After adding a DC you need to run nodetool rebuild. See the procedure here: https://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_add_dc_= to_cluster_t.html Cheers Ben On Fri, 10 Jun 2016 at 14:17 Mradul Maheshwari wrote: > Hi, > I am facing an issue when taking snapshots. > > The details of the setup are as follows > > 1. Cassandra Version 3.5 > 2. I have a keyspace named *other_map* with '*NetworkTopologyStrategy*= ' > and replication factor 1 for 'dc1' > 3. Added another datacenter 'dc2' in the existing cluster > 4. Modified other_map keyspace using the *ALTER* command. > 5. After this Logged on on the node on dc2 datacenter and issued the *= nodetool > snapshot* command for the other_map keyspace. > 6. As a result a directory is created in the other_keyspace/ name>/snapshot/. This contains only a manifest,json file w= hich > has no information about any files. > > > *cat > data/data/other_map/country-f34a28d02b1511e689afc7a4a4b2ee40/snapshots/14= 65457086678/manifest.json* > > *{"files":[]}* > > > > Am I missing any thing here? Are the above mentioned steps complete? > > After altering the keyspace I have tried a *nodetool repair* command > which had also not changed anything. > > Regards, > Mradul > > > Information about schema follows > > CREATE KEYSPACE other_map WITH replication =3D {'class': > 'NetworkTopologyStrategy', 'dc': '1', 'dc2': '2'} AND durable_writes =3D > true; > > CREATE TABLE other_map.country ( > id int PRIMARY KEY, > name text, > states int > ) WITH bloom_filter_fp_chance =3D 0.01 > AND caching =3D {'keys': 'ALL', 'rows_per_partition': 'NONE'} > AND comment =3D '' > AND compaction =3D {'class': > 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', > 'max_threshold': '32', 'min_threshold': '4'} > AND compression =3D {'chunk_length_in_kb': '64', 'class': > 'org.apache.cassandra.io.compress.LZ4Compressor'} > AND crc_check_chance =3D 1.0 > AND dclocal_read_repair_chance =3D 0.1 > AND default_time_to_live =3D 0 > AND gc_grace_seconds =3D 864000 > AND max_index_interval =3D 2048 > AND memtable_flush_period_in_ms =3D 0 > AND min_index_interval =3D 128 > AND read_repair_chance =3D 0.0 > AND speculative_retry =3D '99PERCENTILE'; > > -- =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 Ben Slater Chief Product Officer, Instaclustr +61 437 929 798 --001a114d9a50b6ab660534e4e35c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After adding a DC you need to run nodetool rebuild. See th= e procedure here:=C2=A0https://docs.datastax.= com/en/cassandra/2.1/cassandra/operations/ops_add_dc_to_cluster_t.html<= div>
Cheers
Ben

On Fri, 10 Jun 2016 at 14:17 Mradul Maheshwari <= mradul@apporbit.com> wrote:
Hi,
I am facing= an issue when taking snapshots.

The details of th= e setup are as follows
  1. Cassandra Version 3.5
  2. I ha= ve a keyspace named other_map with 'NetworkTopologyStrategy' and replication factor 1 for 'dc1'
  3. Added anothe= r datacenter 'dc2' in the existing cluster=C2=A0
  4. Modified = =C2=A0other_map keyspace using the ALTER command.
  5. After this= Logged on on the node on dc2 datacenter and issued the nodetool snapsho= t command for the other_map keyspace.
  6. As a result a directory i= s created in the other_keyspace/<table name>/snapshot/<time-stamp&= gt;. This contains only a manifest,json file which has no information about= any files.
<cat content of manifest.json>
cat data/data/other_map/country-f34a28d02b1511e689afc7a4a4b2ee40/snap= shots/1465457086678/manifest.json

{&= quot;files":[]}

</cat cont= ent of manifest.json>

Am I missing any thin= g here? Are the above mentioned steps complete?

Af= ter altering the keyspace I have tried a nodetool repair command whi= ch had also not changed anything.

Regards,
Mradul


Information about schema = follows

CREATE KEYSPACE other_map WITH replic= ation =3D {'class': 'NetworkTopologyStrategy', 'dc'= : '1', 'dc2': '2'} =C2=A0AND durable_writes =3D tru= e;

CREATE TABLE other_map.country (
=C2= =A0 =C2=A0 id int PRIMARY KEY,
=C2=A0 =C2=A0 name text,
=C2=A0 =C2=A0 states int
) WITH bloom_filter_fp_chance =3D 0.01<= /div>
=C2=A0 =C2=A0 AND caching =3D {'keys': 'ALL', = 9;rows_per_partition': 'NONE'}
=C2=A0 =C2=A0 AND comm= ent =3D ''
=C2=A0 =C2=A0 AND compaction =3D {'class&#= 39;: 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy&#= 39;, 'max_threshold': '32', 'min_threshold': '4= '}
=C2=A0 =C2=A0 AND compression =3D {'chunk_length_in_kb= ': '64', 'class': 'org.apache.cassandra.io.compress= .LZ4Compressor'}
=C2=A0 =C2=A0 AND crc_check_chance =3D 1.0
=C2=A0 =C2=A0 AND dclocal_read_repair_chance =3D 0.1
=C2= =A0 =C2=A0 AND default_time_to_live =3D 0
=C2=A0 =C2=A0 AND gc_gr= ace_seconds =3D 864000
=C2=A0 =C2=A0 AND max_index_interval =3D 2= 048
=C2=A0 =C2=A0 AND memtable_flush_period_in_ms =3D 0
=C2=A0 =C2=A0 AND min_index_interval =3D 128
=C2=A0 =C2=A0 AND r= ead_repair_chance =3D 0.0
=C2=A0 =C2=A0 AND speculative_retry =3D= '99PERCENTILE';

--
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94
Ben Slater
Chief Product Officer, In= staclustr
+61 437 929 798
--001a114d9a50b6ab660534e4e35c--