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

CliClient Support for add, drop, and rename should be added for keyspace and column family

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • Legacy/Tools
    • None

    Description

      Should add support for the add, drop, and rename operations to keyspace and column family in the CliClient.

      Eg:

      add keyspace <keyspace> Add a new keyspace.
      add column family <cf>[comparator] Add a new column family.
      drop keyspace <keyspace> Delete a keyspace.
      drop column family <cf> Delete a column family.
      rename keyspace <keyspace>=<keyspace_new_name> Rename a keyspace.
      rename column family <name>=<new_name> Rename a column family.

      Note: I have patch built for this, but drop keyspace corrupts the schema and prevents the node from restarting due to a bug elsewhere (see: CASSANDRA-1203)

      Attachments

        1. cli_new_methods2.diff
          18 kB
          Mason Bryant
        2. cli_new_methods3.diff
          50 kB
          Mason Bryant
        3. cli_new_methods4.diff
          49 kB
          Mason Bryant
        4. cli_new_methods5.diff
          37 kB
          Mason Bryant
        5. cli_unit_tests.diff
          17 kB
          Mason Bryant
        6. cli_unit_tests2.diff
          17 kB
          Mason Bryant

        Issue Links

          Activity

            People

              mbryant Mason Bryant
              mbryant Mason Bryant
              Mason Bryant
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: