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

making cassandra-cli friendlier to scripts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 0.7 beta 1
    • Component/s: Legacy/Tools
    • Labels:
      None
    • Severity:
      Low

      Description

      It is currently possible (and useful) to execute bulk commands with cassandra-cli using shell redirection. However, there is no mechanism for handling errors, and the same output seen in an interactive session is echoed to the terminal.

      The patch that follows accepts a new argument, (--batch), which:

      • disables initialization of the history file
      • suppresses output (stdout only)
      • exits on error with status 2 for invalid syntax, 4 for invalid requests, and 8 for everything else.

        Attachments

          Activity

            People

            • Assignee:
              urandom Eric Evans
              Reporter:
              urandom Eric Evans
              Authors:
              Eric Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: