tapha
tapha

Reputation: 106

How to run a script in cassandra-cli command line

I have a script to create a cassandra keyspace and column families

cd C:\Tools\apache-cassandra-1.0.12
bin/cassandra-cli -host 127.0.0.1 -f C:\example_script.txt
pause

script is included in a batch file. When executed, nothing happens and the script closes.

Upvotes: 0

Views: 3889

Answers (1)

Nikhil
Nikhil

Reputation: 2308

Can you try with '-f' instead of '--f'.

bin/cassandra-cli -host 127.0.0.1 -f C:\example_script.txt

If that doesn't work, please provide a sample of the commands present in 'example_script.txt'

Upvotes: 2

Related Questions