flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Shreedharan" <hshreedha...@cloudera.com>
Subject Re: RPC client connection not getting closed in Log4jAppender
Date Tue, 30 Sep 2014 15:57:28 GMT
That looks like a bug. Can you please file a jira?


Thanks,
Hari

On Tue, Sep 30, 2014 at 2:58 AM, Hanish Bansal
<hanish.bansal.agarwal@gmail.com> wrote:

> Hi All,
> I am using Log4jAppender to send the logs on flume agent.
> Sample piece of code:
> ---------------------------
> public static void main(String[] args) {
> Log log = LogFactory.getLog(LogGenerator.class);
> log.info("Writing log message.");
> }
> log4j.properties file
> ----------------------------
> log4j.rootLogger=INFO,flume
> log4j.appender.flume = org.apache.flume.clients.log4jappender.Log4jAppender
> log4j.appender.flume.Hostname = 192.168.145.127
> log4j.appender.flume.Port = 41414
> log4j.appender.flume.UnsafeMode = false
> log4j.appender.flume.layout=org.apache.log4j.PatternLayout
> log4j.appender.flume.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}
> [%-5p] %c{1} - %m%n
> After main thread finished, flume client connection is not getting closed
> automatically.
> Please let me know if we have to define any other configuration to close
> the
> client connection automaticallty.
> -- 
> *Thanks & Regards*
> *Hanish Bansal*
Mime
View raw message