Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 456F0F48E for ; Fri, 22 Mar 2013 16:19:59 +0000 (UTC) Received: (qmail 65713 invoked by uid 500); 22 Mar 2013 16:19:28 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 65676 invoked by uid 500); 22 Mar 2013 16:19:28 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 65629 invoked by uid 99); 22 Mar 2013 16:19:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 16:19:28 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcdcu-cassandra-user-1@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 16:19:23 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UJ4ge-0002TN-Mi for user@cassandra.apache.org; Fri, 22 Mar 2013 17:19:24 +0100 Received: from edmi112.epsilon.com ([159.127.66.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Mar 2013 17:19:24 +0100 Received: from ppine7 by edmi112.epsilon.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 Mar 2013 17:19:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@cassandra.apache.org From: Marina Subject: Re: cannot start Cassandra on Windows7 Date: Fri, 22 Mar 2013 16:18:46 +0000 (UTC) Lines: 122 Message-ID: References: <2C85E14562B39345BCCAD90B8E7955C927D07D@DKEXC002.adform.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 159.127.66.112 (Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22) X-Virus-Checked: Checked by ClamAV on apache.org Jabbar Azam gmail.com> writes: > > > > > > > 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 logcommitlog_directory: c:/var/lib/cassandra/commitlog# saved cachessaved_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 ;) > > > > Thanks, Jabbar, Victor, Yes, after I made similar changes I was able to start Cassandra too. Would be nice if these instructions were included with the main Cassandra documentation/WIKI :) Thanks! Marina > On 22 March 2013 15:47, Jabbar Azam 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 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.Jevdokimov 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:ppine7 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.(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 > > > > > > > > > > -- ThanksJabbar Azam > > > > > > -- ThanksJabbar Azam > > >