![]() |
|
|
|
|
Issue Type:
|
Improvement
|
|
Affects Versions:
|
1.2.5-1 |
|
Assignee:
|
Stephen Connolly
|
|
Attachments:
|
loadCQL3.patch |
|
Created:
|
26/Sep/13 12:14 PM
|
|
Description:
|
The Cassandra community is pushing users away from CLI and towards CQL. The cassandra:cql-exec goal is great for executing statements against a pre-existing keyspace but it would be nice if CQL scripts could be loaded in the same way as CLI scripts as part of the pre-integration phase.
I've attached a minimal proof-of-concept patch (with a simple integration test) that shows how this might be done. It's not a complete solution but if it makes sense I will expand and complete it. I've included two comments inline for discussion. These relate the the following issues:
- CLI loading calls a CLIMain.java for CLI script loading. There is no Java equivalent (as far as I can see) for CQL. The closest equivalent is a python script in the Cassandra Home directory called cqlsh. The solution I have here assumes that CASSANDRA_HOME/bin is in the path because it calls cqlsh directly. This doesn't seem very safe - is there a better way? [see AbstractCassandraMojo.java]
- This solution assumes there is either a CQL script or a CLI script and loads only one - CQL if available, otherwise CLI. ymmv. [see StartCassandraMojo.java]
Apologies in advance if I'm way off base with this - the patch should be viewed as a proof-of-concept only and not a complete solution. (Also, this is my first time using jira.) I'm keen to work with any other interested parties to improve this.
Thanks,
Lorcan
p.s. this patch incorporates Eric Evans' 2_0_0.patch from Sep 19, 2013, which updated the cassandra.yaml and pom.xml files.
p.p.s. the smoke integration test is failing.
|
|
Project:
|
Mojo's Cassandra Maven Plugin
|
|
Priority:
|
Major
|
|
Reporter:
|
Lorcan Coyle
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email