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

Nick Bailey commented on CASSANDRA-1364:
----------------------------------------

The problem that led to creating this ticket was actually packaging.  Since 
cassandra gets started as a service the init.d script sets up the environment 
variables to point to the correct places.  The various commands in bin don't 
have these set up however so they fail to work.

The solution was to patch all the commands.  I was hoping with this ticket to 
have a more elegant solution but even if there is just a shared setup script 
that would make the patch simpler.  It seems weird to have a setup script in 
bin though. The rest of the scripts are actually useful commands and I'm not 
sure a setup script like that should be installed to /usr/bin.

> Consolidate cassandra commands in bin/
> --------------------------------------
>
>                 Key: CASSANDRA-1364
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1364
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.6.3
>            Reporter: Nick Bailey
>            Priority: Minor
>             Fix For: 0.7.0
>
>
> Pretty much every script in bin has the same first 30 lines or so. We need to 
> remove some of the duplication here.  This could be accomplished by 
> consolidating some commands into a single script or adding an initializer 
> script they all call.
> I think I prefer consolidating at least some of the commands. For example the 
> *tool commands could easily be one cassandra-tool command.  It may even be 
> possible to incorporate most of them into the cassandra script and have 
> different commands for starting a node or using the tools.

-- 
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