[ 
https://issues.apache.org/jira/browse/CASSANDRA-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894270#action_12894270
 ] 

Hudson commented on CASSANDRA-1340:
-----------------------------------

Integrated in Cassandra #505 (See 
[http://hudson.zones.apache.org/hudson/job/Cassandra/505/])
    CASSANDRA-1340. cassandra-cli: batch processing mode

Passing --batch on the command line causes normal output to be suppressed,
and errors to be fatal. Useful for executing bulk commands in a script ala:

   bin/cassandra-cli < commands.txt

Patch by eevans for CASSANDRA-1340


> making cassandra-cli friendlier to scripts
> ------------------------------------------
>
>                 Key: CASSANDRA-1340
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1340
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Eric Evans
>            Assignee: Eric Evans
>            Priority: Minor
>             Fix For: 0.7 beta 1
>
>         Attachments: 
> v1-0001-CASSANDRA-1340.-cassandra-cli-batch-processing-mode.txt
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to