we've had issues in the past w/ the .bat file not quoting paths, which
you need to do to support paths w/ spaces.  can you open a ticket and
we'll fix this one too?

On Thu, Mar 24, 2011 at 9:29 PM, david lee <iecan...@gmail.com> wrote:
> specifying the path using the file:// protocol worked like a charm.
> thank you very much Aaron for your help.
> but i was wondering why
>  -Dlog4j.configuration=log4j-server.properties didn't work and
>  -Dlog4j.configuration=file://"C:\Program Files\Apache Software
> Foundation\apache-cassandra-0.7.4\conf\log4j-server.properties"^ worked so i
> tried to place cassandra's home folder to a folder without any space
> characters
> and it worked without using file:// protocol as well.
> i guess it's the issue with log4j not being able to handle space characters
> well.
>
>
> On 25 March 2011 05:14, aaron morton <aa...@thelastpickle.com> wrote:
>>
>> Just checking the obvious thing, are you running cassandra or
>> cassandra.bat ? (cannot imagine you would even get as far as you did but I
>> like asking questions).
>> It's all a bit strange because the code in 0.7.4 will throw some errors if
>> it cannot resolve a path to load the config from.
>> You can hard code the log config path by modifying the line
>>  -Dlog4j.configuration=log4j-server.properties^
>> in cassandra.bat and specifying a path using the file:// protocol
>> Hope that helps.
>> Aaron
>> On 24 Mar 2011, at 19:40, david lee wrote:
>>
>> hi,
>> i'm trying to run cassandra 0.7 on my windows machine,
>> and i don't seem to be able to go beyond the warning message
>> C:\Program Files\Apache Software
>> Foundation\apache-cassandra-0.7.4\bin>cassandra
>>  -f
>> Starting Cassandra Server
>> log4j:WARN No appenders could be found for logger
>> (org.apache.cassandra.service.
>> AbstractCassandraDaemon).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>> more in
>> fo.
>> in my conf folder, i have log4j-server.properties which looks like
>> log4j.rootLogger=INFO,stdout,R
>> # stdout
>> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
>> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
>> log4j.appender.stdout.layout.ConversionPattern=%5p %d{HH:mm:ss,SSS} %m%n
>> # rolling log file
>> log4j.appender.R=org.apache.log4j.RollingFileAppender
>> log4j.appender.R.maxFileSize=20MB
>> log4j.appender.R.maxBackupIndex=50
>> log4j.appender.R.layout=org.apache.log4j.PatternLayout
>> log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line
>> %L) %m%n
>> # Edit the next line to point to your logs directory
>> log4j.appender.R.File=file:C:/var/log/cassandra/system.log
>> any help will be much appreciated.
>> thanx in advnace
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Reply via email to