hi i have a simple oozie shell action to echo "hell o world", I am trying to over ride the oozie shell action logging Please let me know how this can be achieved
I tried setting the map reduce properties of shell action still it does not work
I have a bash script like this
bash
--------------------------
#!/bin/bash
echo "log4j logger checking the target" # End of script tasks, returning error code
I added the following property in workflow and i tried to execute
<code><property>
<name>mapred.child.java.opts</name>
<value>-Dlog4j.configuration=${log4jConfig}</value>
</property>
the log4j content is similar to this
log4j.rootLogger=${hadoop.root.logger} hadoop.root.logger=INFO,oozie log4j.appender.oozie=org.apache.log4j.ConsoleAppender log4j.appender.oozie.target=System.err log4j.appender.oozie.layout=org.apache.log4j.PatternLayout log4j.appender.oozie.layout.ConversionPattern=[%p] %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} [sds-to-hdfs][%c] %m%n
I want to change the logging target to System.out just to check if the log4j is overirdden
But still the log4j is not overriden please let me know if there is smothing wrong