Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D178F1893A for ; Mon, 22 Jun 2015 16:13:29 +0000 (UTC) Received: (qmail 44907 invoked by uid 500); 22 Jun 2015 16:13:29 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 44874 invoked by uid 500); 22 Jun 2015 16:13:29 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 44863 invoked by uid 99); 22 Jun 2015 16:13:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2015 16:13:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 73D58E03D2; Mon, 22 Jun 2015 16:13:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: slebresne@apache.org To: commits@cassandra.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cassandra git commit: Deprecate sstable2json and json2sstable Date: Mon, 22 Jun 2015 16:13:29 +0000 (UTC) Repository: cassandra Updated Branches: refs/heads/cassandra-2.2 d6312c5f4 -> affb10ce3 Deprecate sstable2json and json2sstable patch by slebresne; reviewed by iamaleksey for CASSANDRA-9618 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/affb10ce Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/affb10ce Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/affb10ce Branch: refs/heads/cassandra-2.2 Commit: affb10ce3a477c5630dd672af6e7b21ce9079761 Parents: d6312c5 Author: Sylvain Lebresne Authored: Mon Jun 22 17:55:16 2015 +0200 Committer: Sylvain Lebresne Committed: Mon Jun 22 18:12:38 2015 +0200 ---------------------------------------------------------------------- CHANGES.txt | 1 + NEWS.txt | 3 +++ src/java/org/apache/cassandra/tools/SSTableExport.java | 3 +++ src/java/org/apache/cassandra/tools/SSTableImport.java | 4 ++++ 4 files changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/affb10ce/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index 93753e5..1e2acc4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.2 + * Deprected sstable2json and json2sstable (CASSANDRA-9618) * Allow native functions in user-defined aggregates (CASSANDRA-9542) * Don't repair system_distributed by default (CASSANDRA-9621) * Fix mixing min, max, and count aggregates for blob type (CASSANRA-9622) http://git-wip-us.apache.org/repos/asf/cassandra/blob/affb10ce/NEWS.txt ---------------------------------------------------------------------- diff --git a/NEWS.txt b/NEWS.txt index 3c71310..fcf254b 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -135,6 +135,9 @@ Upgrading - The SSTableSimpleWriter and SSTableSimpleUnsortedWriter classes have been deprecated and will be removed in the next major Cassandra release. You should use the CQLSSTableWriter class instead. + - The sstable2json and json2sstable tools have been deprecated and will be + removed in the next major Cassandra release. See CASSANDRA-9618 + (https://issues.apache.org/jira/browse/CASSANDRA-9618) for details. 2.1.6 ===== http://git-wip-us.apache.org/repos/asf/cassandra/blob/affb10ce/src/java/org/apache/cassandra/tools/SSTableExport.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/tools/SSTableExport.java b/src/java/org/apache/cassandra/tools/SSTableExport.java index bc460a1..9f833e7 100644 --- a/src/java/org/apache/cassandra/tools/SSTableExport.java +++ b/src/java/org/apache/cassandra/tools/SSTableExport.java @@ -380,6 +380,9 @@ public class SSTableExport */ public static void main(String[] args) throws ConfigurationException { + System.err.println("WARNING: please note that sstable2json is now deprecated and will be removed in Cassandra 3.0. " + + "Please see https://issues.apache.org/jira/browse/CASSANDRA-9618 for details."); + String usage = String.format("Usage: %s [-k key [-k key [...]] -x key [-x key [...]]]%n", SSTableExport.class.getName()); CommandLineParser parser = new PosixParser(); http://git-wip-us.apache.org/repos/asf/cassandra/blob/affb10ce/src/java/org/apache/cassandra/tools/SSTableImport.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/tools/SSTableImport.java b/src/java/org/apache/cassandra/tools/SSTableImport.java index 2fda6bd..b2d63aa 100644 --- a/src/java/org/apache/cassandra/tools/SSTableImport.java +++ b/src/java/org/apache/cassandra/tools/SSTableImport.java @@ -470,6 +470,10 @@ public class SSTableImport */ public static void main(String[] args) throws ParseException, ConfigurationException { + System.err.println("WARNING: please note that json2sstable is now deprecated and will be removed in Cassandra 3.0. " + + "You should use CQLSSTableWriter if you want to write sstables directly. " + + "Please see https://issues.apache.org/jira/browse/CASSANDRA-9618 for details."); + CommandLineParser parser = new PosixParser(); try