Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3769

Allow for comments in a cassandra-cli file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • None
    • Legacy/Tools
    • Amazon Linux w/ Apache Cassandra 1.0.6

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            aghalloran Andrew Halloran
            Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: