I have downloaded Cassandra community edition 2.1.2 (I know its a latest development release currently hence may not be stable). The reason being newer version of cassandra-stress tool which support YAML based configuration which enables to run the tool on my desired keyspace instead of the hardcoded "Keyspace1" in current stable version.
On Windows 7 machine when trying to run cassandra-stress via command line and specifying the path to YAML file, it is always giving error due to ":" character in path starting with "C:\"
C:\Program Files\DataStax Community\apache-cassandra\tools\bin>cassandra-stress user profile=../cqlstress-musicdb.yaml ops(insert=1)
The output is
Illegal character in path at index 10: file:///C:\Program Files\DataStax Community\apache-cassandra\tools\bin\cqlstress-musicdb.yaml
I tried different options to specify the path
- giving absolute path
- giving absolute path in double quotes as well as single quotes
- copy YAML in the same folder and just specify the file name
- copy YAML in a path without spaces because when using single quote space gives the problem
- escaping ":" using backslash
- ignoring "C:" from the beginning and directly starting abosolute path by "/"
- tried different sample YAML file which comes with cassandra
As a next step, I am planning to download the source code and check whats going on there, or try this out on some linux machine if I am able to get hold of one in my org, but just thought to put this question is anyone could help.
Thanks.