The log4j.properties is for streaming Hadoop logs into Chukwa.  It is running 
on port 9096.  You will need to add:

add SocketAdaptor Hadoop 9096 0

Make sure chukwa-hadoop-0.5.0-client.jar, json-simple-1.1jar are copied to 
HADOOP_HOME/lib, and hadoop is restarted.

Hope this helps.

regards,
Eric

On Jul 22, 2011, at 5:07 PM, abhijitdhar wrote:

> I have added this to my HADOOP_CONF_DIR/log4j.properties
>    log4j.appender.DRFA=org.apache.log4j.net.SocketAppender
>    log4j.appender.DRFA.RemoteHost=localhost
>    log4j.appender.DRFA.Port=9096
>    log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
>    log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n
> 
> And this as adapter : add SocketAdaptor HadoopMetrics 9095 0
> And, I have added CHUKWA_HOME/conf/hadoop-metrics.properties to
> HADOOP_CONF_DIR. 
> 
> But, I still can't see anything being written to the agent logs. Any idea
> what else I'm missing?
> 
> Thanks,
> Abhijit
> 
> --
> View this message in context: 
> http://apache-chukwa.679492.n3.nabble.com/chukwa-for-processing-log4j-logs-tp3181483p3192681.html
> Sent from the Chukwa - Users mailing list archive at Nabble.com.

Reply via email to