This quick tutorial served as a guidance on how to start cassandra in eclipse. It has assumption that you had git clone apache cassandra and then setup in eclipse.
With that said, point your mouse cursor to 'Run' menu, then 'Run Configurations...'. In the popup window, left tree menu, select 'Java Application' and create a new application, see screenshot below,
Main class : org.apache.cassandra.service.CassandraDaemon
Click on the 'Arguments' tab , and the provide the arguments to start cassandra.
-Xms1024M -Xmx1024M -Xmn220M -Xss256k -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCondCardMark -javaagent:./lib/jamm-0.3.0.jar -Djava.net.preferIPv4Stack=true
click on Apply and then Run button!
Check the 'Progress' window and see cassandra is starting.
Last but not least, when you are done, remember to terminate the jvm.
No comments:
Post a Comment