I just realized that as well :)
Sent out an email already!
mahadev
On 10/16/09 11:56 AM, "Leonard Cuff" wrote:
> Your comment that the output goes to the console made me realize this is
> configurable via the log4jproperties file, and that I'd configured it long
> ago and forgotten that I'd
Sorry some misinformation from my side.
You can actually change the log4j properties to get it to write to a file.
Using the following in your log4j properties file
log4j.rootLogger=INFO, FILE
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File={$dir}/zoo.log
log4j.append
Your comment that the output goes to the console made me realize this is
configurable via the log4jproperties file, and that I'd configured it long
ago and forgotten that I'd done so.
Thanks for your attention.
Leonard
On 10/16/09 11:35 AM, "Mahadev Konar" wrote:
> Hi Leonard,
> Looks like y
Hi Leonard,
Looks like you are right. bin/zkServer.sh just logs the output to console,
so you should be able to redirect to any file you want. No?
Anyways this is a bug. Please open a jira for it.
Thanks
mahadev
On 10/16/09 11:27 AM, "Leonard Cuff" wrote:
>
> I should have mentioned in my o
I should have mentioned in my original email, but I had already tried
setting ZOO_LOG_DIR as an environment variable. I am using zkServer.sh and I
see where it passes ZOO_LOG_DIR as a parameter to the java invocation.
java "-Dzookeeper.log.dir=${ZOO_LOG_DIR}"
"-Dzookeeper.root.logger=${ZOO_LOG4
Hi Leonard,
You should be able to set the ZOO_LOG_DIR as an environment variable to
get a different log directory. I think you are using bin/zkServer.sh to
start the server?
Also, please open a jira for this. It would be good to fix the documentation
for this.
Thanks
mahadev
On 10/16/09 11:0
I¹ve read through the admin manual at
http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_loggi
ng
and I don¹t see that there is any way to specify a location for the server¹s
own log file. zookeeper.log appears in the bin directory, regardless of
setting dataDir or dataLogDir i