Re: log4j dir?

2014-11-14 Thread hsy...@gmail.com
Anyone has any idea how do I config the log4j file dir? On Thu, Nov 13, 2014 at 4:58 PM, hsy...@gmail.com hsy...@gmail.com wrote: Hi guys, Just notice kafka.logs.dir in log4j.properties doesn't take effect It's always set to *$base_dir/logs* in kafka-run-class.sh LOG_DIR=$base_dir/logs

Re: log4j dir?

2014-11-14 Thread Ben Drees
Hi, I had trouble with this as well. The version of Kafka I'm running insists on using 'kafka/logs', so I create a soft link from there to the desired destination directory: # kafka scripts hard-code the logs dir, so point that path to where we want the logs to be. ln -s $STREAM_BUFFER_LOGS_DIR

Re: log4j dir?

2014-11-14 Thread hsy...@gmail.com
I think there is no way to specify different log location without modifying shell script. The *kafka.**logs.dir* in log4j.properties file is misleading On Fri, Nov 14, 2014 at 1:24 PM, Ben Drees ben.dr...@gmail.com wrote: Hi, I had trouble with this as well. The version of Kafka I'm running

log4j dir?

2014-11-13 Thread hsy...@gmail.com
Hi guys, Just notice kafka.logs.dir in log4j.properties doesn't take effect It's always set to *$base_dir/logs* in kafka-run-class.sh LOG_DIR=$base_dir/logs KAFKA_LOG4J_OPTS=-Dkafka.logs.dir=$LOG_DIR $KAFKA_LOG4J_OPTS Best, Siyuan