Oops, I also had opscenter installed on my PC. My changes
log4j-server.properties file ------------------------------------ log4j.appender.R.File=c:/var/log/cassandra/system.log cassandra.yaml file ---------------------------- # directories where Cassandra should store data on disk. data_file_directories: - c:/var/lib/cassandra/data # commit log commitlog_directory: c:/var/lib/cassandra/commitlog # saved caches saved_caches_directory: c:/var/lib/cassandra/saved_caches* * I also added an environment variable for windows called CASSANDRA_HOME* * * * I needed to do this for one of my colleagues and now it's documented ;)* * * * On 22 March 2013 15:47, Jabbar Azam <aja...@gmail.com> wrote: > Viktor, you're right. I didn't get any errors on my windows console but > cassandra.yaml and log4j-server.properties need modifying. > > > On 22 March 2013 15:44, Viktor Jevdokimov <viktor.jevdoki...@adform.com>wrote: > >> You NEED to edit cassandra.yaml and log4j-server.properties paths before >> starting on Windows. >> >> There're a LOT of things to learn for starters. Google for Cassandra on >> Windows. >> >> >> >> Best regards / Pagarbiai >> >> Viktor Jevdokimov >> Senior Developer >> >> Email: viktor.jevdoki...@adform.com >> Phone: +370 5 212 3063 >> Fax: +370 5 261 0453 >> >> J. Jasinskio 16C, >> LT-01112 Vilnius, >> Lithuania >> >> >> >> Disclaimer: The information contained in this message and attachments is >> intended solely for the attention and use of the named addressee and may be >> confidential. If you are not the intended recipient, you are reminded that >> the information remains the property of the sender. You must not use, >> disclose, distribute, copy, print or rely on this e-mail. If you have >> received this message in error, please contact the sender immediately and >> irrevocably delete this message and any copies.> -----Original Message----- >> > From: Marina [mailto:ppi...@yahoo.com] >> > Sent: Friday, March 22, 2013 17:21 >> > To: user@cassandra.apache.org >> > Subject: cannot start Cassandra on Windows7 >> > >> > Hi, >> > I have downloaded apache-cassandra-1.2.3-bin.tar.gz and un-zipped it on >> my >> > Windows7 machine (I did not find a Windows-specific distributable...). >> Then, I >> > tried to start Cassandra as following and got an error: >> > >> > C:\Marina\Tools\apache-cassandra-1.2.3\bin>cassandra.bat -f Starting >> > Cassandra Server Exception in thread "main" >> > java.lang.ExceptionInInitializerError >> > Caused by: java.lang.RuntimeException: Couldn't figure out log4j >> > configuration: >> > log4j-server.properties >> > at >> > org.apache.cassandra.service.CassandraDaemon.initLog4j(CassandraDaemo >> > n.java:81) >> > at >> > org.apache.cassandra.service.CassandraDaemon.<clinit>(CassandraDaemon >> > .java:57) >> > Could not find the main class: >> > org.apache.cassandra.service.CassandraDaemon. Pr ogram will exit. >> > >> > C:\Marina\Tools\apache-cassandra-1.2.3\bin> >> > >> > It looks similar to the Cassandra issue that was already fixed: >> > https://issues.apache.org/jira/browse/CASSANDRA-2383 >> > >> > however I am still getting this error.... >> > I am an Administrator on my machine, and have access to all files in the >> > apache- cassandra-1.2.3\conf dir, including the log4j ones. >> > >> > Do I need to configure anything else on Winows ? I did not find any >> > Windows- specific installation/setup/startup instructions - if there >> are such >> > documents somewhere, please let me know! >> > >> > Thanks, >> > Marina >> > >> > >> >> > > > -- > Thanks > > Jabbar Azam > -- Thanks Jabbar Azam