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 0DEB7200B87 for ; Mon, 19 Sep 2016 15:17:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C70E160ACC; Mon, 19 Sep 2016 13:17: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 29022160ABC for ; Mon, 19 Sep 2016 15:17:33 +0200 (CEST) Received: (qmail 5351 invoked by uid 500); 19 Sep 2016 13:17: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 5341 invoked by uid 99); 19 Sep 2016 13:17:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 13:17:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 51D4C1A5CFF for ; Mon, 19 Sep 2016 13:17:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BVqaU-wKexdO for ; Mon, 19 Sep 2016 13:17:28 +0000 (UTC) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id C29E05FB0E for ; Mon, 19 Sep 2016 13:17:26 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id t67so143466966ywg.3 for ; Mon, 19 Sep 2016 06:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=n/EJ4szSeAJt9A9qy96EFsLKZe3b48wRokAXfql/pV8=; b=R7SbCQMkZTL4kfHxySkOc4kB+MRsTIpHI23o5F0zpgGhG3E3nbHwUEtieoeIi6QfaG alu41FGRNwQJ/zPOCZHraJEU7EGLZs/dvFlSDE0b22ftTMOgAf0lgMOKWbuwOqlLHtNh j1hqdOGw5VYayGADlergJ2ZEcBPkS/O9E+DUzEGoW3SPShvUAVU1kU/LskVrB73QQ0PK 9oKhcEeKgjGILVqySjMI+XD4ygjpL3na2lN/BKNU1qZ6XJQVJzOXW2X6q1Ic2f5kizeR cVIdG5I4GxeasyQItwaxtKcZHU7XiZc7+NPfPeeOYZCBZplLfigKqPlJnCCo1XNeZ8mq mgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=n/EJ4szSeAJt9A9qy96EFsLKZe3b48wRokAXfql/pV8=; b=UsrbEGVS3BQbsjtPPE18Iv54QisT0uFfq0d1eg2mGSMur4mXhbl+sVXppJTweZPpfF BThraKk0FHh64W4TRZwHj28n/ffxI9LAyfBW3Tj0HiKjElWmz4r0s50YuYCBkPu5Pk6p FSkk+rGqDwqBE35UmYnY0Lka6SQmxDhtZSCq9OwhS+fsITgXegm/w77wb/vJfJmgp/jY bK9Leg+gym6E4XjhD1yhWsrZpgCOO21jLvSgMvUydJSIfGn4+xZE0bDoBoltkia5/3lr BGJ1FaLASOwx1f+sz4LIFwmVvFkW2mxMV+wB/9RE1IS0lyppQ/T6tNOVKJHTd76k14G4 d0vw== X-Gm-Message-State: AE9vXwN5fW5Beh9YGI4C6zimAcTLtdz7f98sDNOdvkzwVoyc+p7sJNjTi4D7Jm6NTT1ZpUKI/87TRw94Y2MDtw== X-Received: by 10.129.53.86 with SMTP id c83mr25521237ywa.70.1474291046150; Mon, 19 Sep 2016 06:17:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.38.116 with HTTP; Mon, 19 Sep 2016 06:17:05 -0700 (PDT) In-Reply-To: <76B23E0F09982343A088AB6D02883DEB18299F@MX201CL02.corp.emc.com> References: <76B23E0F09982343A088AB6D02883DEB18299F@MX201CL02.corp.emc.com> From: Alain RODRIGUEZ Date: Mon, 19 Sep 2016 15:17:05 +0200 Message-ID: Subject: Re: A question to sstable2json To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114225e219fdc1053cdc22ef archived-at: Mon, 19 Sep 2016 13:17:34 -0000 --001a114225e219fdc1053cdc22ef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Have you solved this issue? Sorry we did not answered you earlier. Is it a bug of Cassandra 2.1.11 Not that I am aware of. or I misused this command? What does your command look like? I could try it locally if that helps. C*heers, ----------------------- Alain Rodriguez - @arodream - alain@thelastpickle.com France The Last Pickle - Apache Cassandra Consulting http://www.thelastpickle.com 2016-09-08 5:02 GMT+02:00 Lu, Boying : > Hi, All, > > > > We use Cassandra 2.1.11 in our product and I tried its sstable2json to > dump some sstable file like this: > > sstable2json full-path-to-sstable-file (e.g. xxx-Data.db). > > > > But I got an assert error at =E2=80=9Cassert initialized || > keyspaceName.equals(SYSTEM_KS);=E2=80=9D (Keyspace.java:97). > > The 'keyspaceName' is our keyspace, but the SYSTEM_KS is "system" (define= d > inside Keyspace class). > > > > This error is related to the following statement in SSTableExport.java: > > Keyspace keyspace =3D Keyspace.open(descriptor.ksname); ( > SSTableExport.java:432) > > > > Adding "Keyspace.setInitialized()" before this statement solves the issue= . > > > > Is it a bug of Cassandra 2.1.11 or I misused this command? > > > > Thanks > > > > Boying > > > --001a114225e219fdc1053cdc22ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Have you solved this issue?=C2=A0So= rry we did not answered you earlier.

Is it a bug = of Cassandra 2.1.11

Not that I am aw= are of.

or I misused this command?

What does your command look like? I could try it= locally if that helps.

C*heers,
--= ---------------------
Alain Rodriguez - @arodream - alain@thelastpickle.com
France<= /div>

The Last Pickle - Apache Cassandra Consulting


<= div class=3D"gmail_quote">2016-09-08 5:02 GMT+02:00 Lu, Boying <Boying.Lu= @dell.com>:

Hi, All,

=C2=A0

We use Cassandra 2.1.11 in our product and I tried its sstable2json to d= ump some sstable file like this:

sstable2json full-path-to-sstable-file (e.g. xxx-Data.db).=

=C2=A0

But I got an assert error at=C2=A0 =E2=80=9Cassert initialized || keyspa= ceName.equals(SYSTEM_KS);=E2=80=9D (Keyspace.java:97).

The 'keyspaceName' is our keyspace, but the SYSTEM_KS is "s= ystem" (defined inside Keyspace class).

=C2=A0

This error is related to the following statement in SSTableExport.java:<= u>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Keyspace keyspace =3D Keyspac= e.open(descriptor.ksname); ( SSTableExport.java:432)

=C2=A0

Adding "Keyspace.setInitialized()" before this statement solve= s the issue.

=C2=A0

Is it a bug of Cassandra 2.1.11 or I misused this command?=

=C2=A0

Thanks

=C2=A0

Boying

=C2=A0


--001a114225e219fdc1053cdc22ef--