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 EA75998B3 for ; Tue, 28 Feb 2012 13:34:07 +0000 (UTC) Received: (qmail 88492 invoked by uid 500); 28 Feb 2012 13:34:07 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 88445 invoked by uid 500); 28 Feb 2012 13:34:07 -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 88349 invoked by uid 99); 28 Feb 2012 13:34:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 13:34:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 13:34:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9EB1D33EE8C for ; Tue, 28 Feb 2012 13:33:46 +0000 (UTC) Date: Tue, 28 Feb 2012 13:33:46 +0000 (UTC) From: "Benson Margulies (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <804364858.27891.1330436026651.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <179506672.64805.1327256319977.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3769) Allow for comments in a cassandra-cli file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13218159#comment-13218159 ] Benson Margulies commented on CASSANDRA-3769: --------------------------------------------- How did my name get onto this? > Allow for comments in a cassandra-cli file > ------------------------------------------ > > Key: CASSANDRA-3769 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3769 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Affects Versions: 1.0.6 > Environment: Amazon Linux w/ Apache Cassandra 1.0.6 > Reporter: Andrew Halloran > Priority: Trivial > Labels: cassandra-cli > > I use the cassandra-cli to create schemas, update schemas, and make other calls to interrogate keyspaces and columns. I load pre-written statements from files using the -f option, example: "bin/cassandra-cli -host localhost -port 9160 -f mystatements.txt". It would be useful if I could comment my statement files with comments similar to how you can comment script and C++/Java code. > Example contents of "mystatements.txt" file: > update column family users // This is my column which holds all my user information > with comparator = UTF8Type // My column names are all strings so I will use UTF8Type > and key_validation_class = UTF8Type // My row key values are also UTF8Type > and default_validation_class = UTF8Type // Column values will be UTF8Type > and column_metadata = [ > {column_name: username, validation_class: UTF8Type}, // This column stores the login name of the user > {column_name: realname, validation_class: UTF8Type}];// This column stores the real world name of user -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira