Error starting cassandra with bin / cassandra -f

I have the latest version of cassandra installed on my computer running Windows 7 in the following directory:

/cygdrive/c/Development/Cassandra/apache-cassandra-1.1.4 

All necessary directories are created for data_file_directories, saved_caches_direcory and commitlog_directory in / var / lib / cassandra, but when I try to run it using:

 bin/cassandra -f 

I get the following error:

$ bin / cassandra -f xss = -ea -javaagent: bin /../ lib / jamm-0.2.5.jar -XX: + UseThreadPriorities -XX: ThreadPriorityPolicy = 42 -Xms1024M -Xmx1024M -Xmn200M -XX: + HeapDumpOnOutOfMemoryr / cassandra: line 149: getopt: command not found Argument parsing error!

This is not the first time I have seen this error, but I do not have this problem when writing cassandra on Mac (in the same version). I missed some configuration step somewhere on Windows as I follow the β€œGetting Started wiki” and I don't see anything obvious. My system has 4 GB of RAM, so it should be able to handle just fine, and I did not change the HEAP_SIZE values ​​and just left them commented out so that the cassandra could choose how much it needed.

Any thoughts on what causes this error at startup?

thanks

+4
source share
1 answer

Cassandra is not supported in cygwin, but bin \ cassandra.bat is known to work under regular Windows cmd. DataStax also distributes its own Windows installer (creating the Windows service) at http://www.datastax.com/products/community .

+3
source

Source: https://habr.com/ru/post/1433405/


All Articles