- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
how do I configure log4j.properties for zookeeper?
Created 04-22-2016 01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have HDP 2.4.0 with Ambari 2.2.1.
I tried to modify log4j.properti by advancec-zookeeper-log4j but when you restart of zookeeper, the server has not acquired the changes.
I saw that in the file zkEnv.sh
if [ "x${ZOO_LOG4J_PROP}" = "x" ] then ZOO_LOG4J_PROP="INFO,ROLLINGFILE" fi
I tried to set DEBUG but has not changed the logging level
Created 04-22-2016 01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try to change that via Ambari Zookeeper config?
Ambari will overwrite everything in the config files that you change directly on the filesystem
Created 04-23-2016 09:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bernhard Walter,
I tried to change log4j properties of zookeeper from ambari, but the server has not acquired the changes.
Created 04-26-2016 10:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, in advaced zookeeper.log4j set:
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log
${zookeeper.log.dir} is missing in defaul configuration.
