Druid Version: .145
Moving the discussion here so that it can benefit others.
I want to enable DEBUG level logging for realtime tasks started by Middle Manager. Steps suggested were as below and i attempted the following
1. Create a log4j.xml as attached..
2. I placed the above file in MM machine at /opt/druid/druid-services-0.6.145/config/overlord/log4j.xml
3. Note that the log4j file has FILE appender with
<param name="File" value="task.log" />
and
<logger name="io.druid.indexing.common.task.RealtimeIndexTask">
<level value="TRACE" />
<appender-ref ref="FILE" />
</logger>
4. I started MM as
$ export JAVA_HOME=/opt/druid/packages/jdk1.7.0_67
$ export PATH=$PATH:$JAVA_HOME/bin
$ export DRUID_HOME=/opt/druid/druid-services-0.6.145
$ java -Ddruid.indexer.fork.property.log4j.configuration=$DRUID_HOME/config/overlord/log4j.xml -server -Xmx1g -Xms1g -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/tmp -classpath /opt/druid/druid-services-0.6.138/lib/*:/opt/druid/druid-services-0.6.138/config/overlord:/apache/hadoop/conf:/apache/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.4.1-EBAY-2.jar:/apache/hadoop/share/hadoop/common/hadoop-common-2.4.1-EBAY-2.jar:/apache/hadoop/share/hadoop/common/lib/commons-collections-3.2.1.jar:/apache/hadoop/share/hadoop/common/lib/commons-configuration-1.6.jar:/apache/hadoop/share/hadoop/common/lib/hadoop-auth-2.4.1-EBAY-2.jar:/apache/hadoop/share/hadoop/common/lib/hadoop-ebay-0.1-EBAY-2.jar:/apache/hadoop/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/commons-net-3.1.jar io.druid.cli.Main server middleManager
5. I submitted a realtime task to overlord and it started a peon on above MM. (Single MM, Overlord and Peon).
6. When i open the druid overlord console, i see a task and when i click Log(All) link i still see that LOGS are in INFO and NOT DEBUG and i do not see a file task.log .
Questions
1. How will druid send log statements to default log file and the new one ? Or will it merge both
2. What do i need to change in above statements to get this working.
I think this can be enabling DEBUG for various nodes is worth documenting as Druid usage requires very much internal involvement and will be mostly used by developers.
Offcourse once i get it working i will send out a post so that its atleast documented on groups.
-Deepak