Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The following page has been changed by dehora: http://wiki.apache.org/cassandra/RunningCassandraInIDEA New page: = Setup Cassandra Check out Cassandra from Subversion and create your new project. IDEA will generally set the project up properly for you (you'll need to add the lib folder to your project dependencies). You will need to add the "conf" to your sources, so that log4j properties can be found. = Cassandra start Create a new application called cassandra * main class {{{ org.apache.cassandra.service.CassandraDaemon }}} * VM Parameters {{{ -Dcassandra -Dstorage-config=@@@-ea -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n -Xms128M -Xmx1G -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:+AggressiveOpts -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=1 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote.port=8080 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false }}} Replace @@@ above with the path to your conf folder, eg mine is "/home/dehora/projects/asf/cassandra/trunk/conf". The flags above are taken from the cassandra shell script. * Working Directory eg mine is "/home/dehora/projects/asf/cassandra" * Environment variables eg, {{{ cassandra_home: /home/dehora/projects/asf/cassandra/trunk CASSANDRA_CONF: /home/dehora/projects/asf/cassandra/trunk/conf }}} IDEA didn't expand these for me in the VM Parameters line, hence the hardcoded path above - you probably don't need them. = Verify When you start the app it should look similar to cmd line start, eg mine looks like this: {{{ Connected to the target VM, address: '127.0.0.1:51235', transport: 'socket' DEBUG - Loading settings from /home/dehora/projects/asf/cassandra/trunk/conf/storage-conf.xml DEBUG - adding edges as 0 DEBUG - adding extended_attributes as 1 DEBUG - adding base_attributes as 2 DEBUG - adding Super1 as 3 DEBUG - adding Standard2 as 4 DEBUG - adding Standard1 as 5 DEBUG - adding StandardByTime1 as 6 DEBUG - adding LocationInfo as 7 DEBUG - adding HintsColumnFamily as 8 DEBUG - INDEX LOAD TIME for /var/cassandra/data/users-base_attributes-2-Data.db: 50 ms. DEBUG - INDEX LOAD TIME for /var/cassandra/data/Table1-Standard1-2-Data.db: 0 ms. DEBUG - INDEX LOAD TIME for /var/cassandra/data/Table1-Standard1-4-Data.db: 0 ms. INFO - Replaying /var/cassandra/commitlog/CommitLog-1246387410151.log DEBUG - Starting to listen on 127.0.0.1:7001 }}} Try running the cassandra-cli as per [CassandraCLI], and you should be able to connect to localhost/9160.
