Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 78651 invoked from network); 13 Dec 2010 22:13:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 22:13:01 -0000 Received: (qmail 31633 invoked by uid 500); 13 Dec 2010 22:12:58 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 31609 invoked by uid 500); 13 Dec 2010 22:12:58 -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 31601 invoked by uid 99); 13 Dec 2010 22:12:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 22:12:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a47.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 22:12:52 +0000 Received: from homiemail-a47.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTP id 93309284063 for ; Mon, 13 Dec 2010 14:12:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:date:message-id:content-type:mime-version:in-reply-to; q=dns; s=thelastpickle.com; b=unCWiZQJooBdI+5E4VmHI3Zhpv1RABrfs Jjl7Cfn2CnyA3KcezHQsfBxqXGeELylg6hfYB0Hp+xKbjERDWshYjwZSo8C5r6Ml umqdbbcm8bTYeEAsUiBAKFRlxb0F+gxl4XmE3mmNZVjGupV9mlZlTbIN0yhobPHO +7JUj8LC44= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:date:message-id:content-type:mime-version: in-reply-to; s=thelastpickle.com; bh=A5VJ9swavHv5Uj957tBBHeksGUg =; b=ouoNC0jufxJTWVE4FM6OlGE2q0BIA/yV9ZtPsyXJCyIv7d8C1Bw1b4QKkOQ t4PdBxofhm6FBfP0cNlzurhTlv3And0bVC8SrD8ji/OO6+bUef9hLCSbO7d8YsZc TSnXw+qBHmCxW5bdI5gxuW+03lqOkSjselKf+6yZ3WtsZCwo= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 6E16928405C for ; Mon, 13 Dec 2010 14:12:26 -0800 (PST) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: unable to start cassandra-0.7r2 Date: Mon, 13 Dec 2010 22:12:25 GMT X-Mailer: MobileMe Mail (1C321604) Message-id: Content-Type: multipart/alternative; boundary=Apple-Webmail-42--d0bf31ec-12e1-e535-f312-8f2386e01183 MIME-Version: 1.0 In-Reply-To: --Apple-Webmail-42--d0bf31ec-12e1-e535-f312-8f2386e01183 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Given that log4j could not find it's configuration file I'm guessing it's = a problem with the current working directory when eclipse starts cassandra= =0A=0ACan you start cassandra manually from where you have the source cod= e?=A0=0A=0AI do not use eclipse so may not be much more help.=0A=0AAaron=0A= =0A=0AOn 14 Dec, 2010,at 11:01 AM, Liangzhao Zeng wrote:=0A=0Alog4j:WARN No appenders could be found for logger (org.apac= he.cassandra.service.AbstractCassandraDaemon).=0Alog4j:WARN Please initial= ize the log4j system properly.=0Alog4j:WARN See http://logging.apache.org/= log4j/1.2/faq.html#noconfig for more info.=0ABad configuration; unable to = start server=0A=0AThat is the error msg.=A0=0A=0AThe log4j-server.properti= es I used is=A0=0A=0A# Licensed to the Apache Software Foundation (ASF) un= der one=0A# or more contributor license agreements.=A0 See the NOTICE file= =0A# distributed with this work for additional information=0A# regarding c= opyright ownership.=A0 The ASF licenses this file=0A# to you under the Apa= che License, Version 2.0 (the=0A# "License"); you may not use this file ex= cept in compliance=0A# with the License.=A0 You may obtain a copy of the L= icense at=0A#=0A# =A0 =A0 http://www.apache.org/licenses/LICENSE-2.0=0A#=0A= # Unless required by applicable law or agreed to in writing, software=0A# = distributed under the License is distributed on an "AS IS" BASIS,=0A# WITH= OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.=0A# S= ee the License for the specific language governing permissions and=0A# lim= itations under the License.=0A=0A=0A#log4j.rootLogger=3DDEBUG,R=0A=0A# out= put messages into a rolling log file as well as stdout=0Alog4j.rootLogger=3D= DEBUG, R, INFO, FINEST=0A=0Alog4j.appender.DEBUG=3Dorg.apache.log4j.Consol= eAppender=0Alog4j.appender.DEBUG.layout=3Dorg.apache.log4j.SimpleLayout=0A= =0A=0Alog4j.appender.FINEST=3Dorg.apache.log4j.ConsoleAppender=0Alog4j.app= ender.FINEST.layout=3Dorg.apache.log4j.SimpleLayout=0A=0Alog4j.appender.IN= FO=3Dorg.apache.log4j.ConsoleAppender=0Alog4j.appender.INFO.layout=3Dorg.a= pache.log4j.SimpleLayout=0A=0A=0A# rolling log file ("system.log=0Alog4j.a= ppender.R=3Dorg.apache.log4j.DailyRollingFileAppender=0Alog4j.appender.R.D= atePattern=3D'.'yyyy-MM-dd-HH=0Alog4j.appender.R.layout=3Dorg.apache.log4j= PatternLayout=0Alog4j.appender.R.layout.ConversionPattern=3D%5p [%t] %d{I= SO8601} %F (line %L) %m%n=0Alog4j.appender.R.File=3Dbuild/test/logs/system= log=0A=0A=0A=0A=0A# Specify the handlers to create in the root logger=0A#= (all loggers are children of the root logger)=0A# The following creates t= wo handlers=0Ahandlers =3D java.util.logging.ConsoleHandler, java.util.log= ging.FileHandler=0A=0A# Set the default logging level for the root logger=0A= level =3D ALL=0A=0A# Set the default logging level for new ConsoleHandler= instances=0Ajava.util.logging.ConsoleHandler.level =3D ALL=0A=0A# Set the= default logging level for new FileHandler instances=0Ajava.util.logging.F= ileHandler.level =3D ALL=0A=0A# Set the default formatter for new ConsoleH= andler instances=0Ajava.util.logging.ConsoleHandler.formatter =3D java.uti= l.logging.SimpleFormatter=0A=0A=0AThanks=0A=0AOn Mon, Dec 13, 2010 at 2:23= PM, Aaron Morton wrote:=0ACan you provide the f= ull log messages so we can see where they are logged from and if there are= any other messages as well.=0A=0AIt's probably a problem finding the conf= ig file or an invalid config file.=0A=0AAaron=0A=0A=0A=0AOn 14/12/2010, at= 4:02 AM, Liangzhao Zeng wrote:=0A=0A=0A=0AI us= e VM argument to specify the configuration file=A0=0A-Dstorage-config=3D/U= sers/zlzhao/Documents/eclipse/MaaSWorkspace/cassandra-0.7r2/test/conf/ -Dc= assandra-foreground =A0-ea -Xmx1G=0ABy the way, I can run the 0.66 using b= y following the wikipage. Do we need more configuration in order to run 0.= 7?=0A=0ACheers,=0ALiangzhao=0A=0AOn Mon, Dec 13, 2010 at 6:02 AM, shimi wrote:=0AI have seen this error in 0.6.x when I was miss= ing the cash directory configuration.=0AMaybe you are missing something in= your configuration.=0A=0AShimi=0A=0A=0A=0AOn Mon, Dec 13, 2010 at 12:45 P= M, aaron morton wrote:=0AI've seen that before w= hen cassandra.yaml file cannot be found or is corrupted. It may be that ec= lipse is not starting cassandra with the current working directory set as = you think it is. Sorry, cannot help much with eclipse.=A0=0A=0AThere are a= couple of places where that message can be logged. One is from the Abstra= ctCassandraDaemon and the other is from the DatabaseDescriptor. Where is y= our's coming from?=0A=0AAaron=0A=0AOn 13 Dec 2010, at 19:22, Liangzhao Zen= g wrote:=0A=0ABad configuration; unable to start server. Any idea=0A=0A=0A= =0A=0A --Apple-Webmail-42--d0bf31ec-12e1-e535-f312-8f2386e01183 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--d0bf31ec-12e1-e535-f312-8f2386e01183 --Apple-Webmail-86--d0bf31ec-12e1-e535-f312-8f2386e01183 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
Given that log4j could not find it's configuration file I'm guessing = it's a problem with the current working directory when eclipse starts cass= andra.

Can you start cassandra manually from wher= e you have the source code? 

I do not use ec= lipse so may not be much more help.

Aaron


On 14 Dec, 2010,at 11:01 AM, Liangzhao Zeng <liangzhao.zeng@= gmail.com> wrote:

=0A=0A= =0A=0A=0A=0A=0A=0A

log4j:WARN No appenders could be found f= or logger (org.apache.cassandra.service.AbstractCassandraDaemon).

=0Alog4j:WARN Please initialize the log4j system properly.

=0A=

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig= for more info.

=0A

Bad configuration; unable to start s= erver


That is the error msg.&nb= sp;


The log4j-server.properties= I used is 


=0A

=0A=0A=0A=0A= =0A=0A=0A=0A

# Licensed to the Apach= e Software Foundation (ASF) under one

=0A

# or mo= re contributor license agreements.  See the NOTICE file

=0A

# distributed with this work for additional information

=0A

# regarding copyright ownership.  The ASF licenses this = file

=0A

# to you under the Apache License, Version 2.0 (the

=0A

# "License"); you may= not use this file except in compliance

=0A

# with the L= icense.  You may obtain a copy of the License at

=0A

#

=0A

#     http://www.apache.org/licenses/LICENSE-2.0

=0A

#

=0A

# Unless required by applicable law or agreed to = in writing, software

=0A

# distributed under the License= is distributed on an "AS IS" BASIS,

=0A

# WITHOUT WARRA= NTIES OR CONDITIONS OF ANY KIND, either express or implied.

=0A

# See the License for the specific language governing permissions = and

=0A

# limitations under the License.

=0A


=0A


=0A

#log4j.rootLogg= er=3DDEBUG,R

=0A


=0A

# output mes= sages into a rolling log file as well as stdout<= /p>=0A

log4j.rootLogger=3DDEBUG, = R, INFO, FINEST

=0A


=0A

log4j.appender.DEBUG=3Dorg.apache.log4j.ConsoleAppende= r

=0A

log4j.appender.DEBUG.layout=3D<= /span>org.apache.log4j.SimpleLayout

=0A


=0A


=0A

log4j.appender.FI= NEST=3Dorg.apache.log4j.ConsoleAppender

=0A

log4j= appender.FINEST.layout=3Dorg.apache.log4j.SimpleLayout=

=0A


=0A

log4j.appender.INFO=3Dorg.apache.log4j.ConsoleAppender<= /p>=0A

log4j.appender.INFO.layout=3Dorg.apache.log4j.SimpleLayout

=0A


=0A


=0A

# rolling log file ("system.log

=0A<= p class=3D"p4">log4j.appender.R=3Dorg.apache.log= 4j.DailyRollingFileAppender

=0A

log4j.appender.R.DatePat= tern=3D'.'yyyy-MM-dd-HH

=0A

log4j.appender.R.layout=3D<= /span>org.apache.log4j.PatternLayout

=0A

log4j.appender.= R.layout.ConversionPattern=3D%5p [%t] %d{ISO8601} %= F (line %L) %m%n

=0A=0A

lo= g4j.appender.R.File=3Dbuild/test/logs/system.log

=0A


=0A


=0A


=0A


=0A

# Specify the handlers to create in = the root logger

=0A

# (all loggers are children of the r= oot logger)

=0A

# The following creates two handlers

= =0A

handlers =3D java.util.loggin= g.ConsoleHandler, java.util.logging.FileHandler<= /p>=0A


=0A

# Set the default logging= level for the root logger

=0A

.level =3D ALL

=0A


=0A

# Set the= default logging level for new ConsoleHandler instances

=0A

java.util.logging.ConsoleHandler.level =3D ALL

=0A


=0A

# Set the default logg= ing level for new FileHandler instances

=0A

java.util.lo= gging.FileHandler.level =3D ALL

=0A


=0A

# Set the default formatter for new Consol= eHandler instances

=0A

java.util.logging.ConsoleHandler.= formatter =3D java.util.logging.SimpleFormatter<= /p>



= Thanks


=0AOn Mon, Dec 13, 2010 at 2:23 P= M, Aaron Morton <aaron@thelastpickle.co= m> wrote:
=0A
Can you provide the full log messages so we can see where they are= logged from and if there are any other messages as well.

It's probably a problem finding the config file or an invalid con= fig file.
=0A

Aaron=



On 14/12/2010, at 4:02 AM, L= iangzhao Zeng <liangzhao.zeng@gmail.c= om> wrote:
=0A


I use VM argument = to specify the configuration file 
-Dstorage-config=3D/Users/zlzh= ao/Documents/eclipse/MaaSWorkspace/cassandra-0.7r2/test/conf/ -Dcassandra-= foreground  -ea -Xmx1G
=0A
By the way, I can run the 0.66 us= ing by following the wikipage. Do we need more configuration in order to r= un 0.7?
=0A

Cheers,
Liangzhao

On Mon, Dec 13, 2010 at 6:02 AM, shimi <shimi.k@gmail.com> wrote:
=0A
=0AI have seen this error in 0.6.x when I was missing the cash d= irectory configuration.
Maybe you are missing something in your config= uration.

Shimi=0A=0A



=0AOn Mon, D= ec 13, 2010 at 12:45 PM, aaron morton <aaron@thelastpickle.= com> wrote:
=0A
=0A= =0A
I've seen that before when cassandra.yaml file cannot be found or is co= rrupted. It may be that eclipse is not starting cassandra with the current= working directory set as you think it is. Sorry, cannot help much with ec= lipse. 
=0A=0A=0A
There are a couple of places wher= e that message can be logged. One is from the AbstractCassandraDaemon and = the other is from the DatabaseDescriptor. Where is your's coming from?

=0A=0A=0AAaron

On 13 Dec 201= 0, at 19:22, Liangzhao Zeng wrote:

Bad c= onfiguration; unable to start server. Any idea
=0A= =0A=0A


=0A

=0A
<= /blockquote>
=0A --Apple-Webmail-86--d0bf31ec-12e1-e535-f312-8f2386e01183-- --Apple-Webmail-42--d0bf31ec-12e1-e535-f312-8f2386e01183--