samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yi Pan <nickpa...@gmail.com>
Subject Re: Change log level in samza application
Date Mon, 17 Sep 2018 17:05:04 GMT
Hi, Debraj,

The method would be the same as how you would change the log level in
runtime for other Java application, as long as you find the location of the
log4j.xml file.
Link here:
https://stackoverflow.com/questions/4598702/dynamically-changing-log4j-log-level.
I think the best way is to change the log level via JMX, since Samza
provides JmxServer on containers already.

-Yi

On Mon, Sep 17, 2018 at 9:57 AM Debraj Manna <subharaj.manna@gmail.com>
wrote:

> Thanks for replying.
>
> Is there a way to dynamically change this for running containers in YARN?
>
> On Mon 17 Sep, 2018, 10:19 PM Yi Pan, <nickpan47@gmail.com> wrote:
>
> > Hi, Debraj,
> >
> > Samza application's log level is controlled by the log4j.xml configure
> > files packaged together with binary tgz file. In YARN, it is usually
> under
> >
> >
> ${YARN_INSTALL_DIR}/usercache/appcache/${APP_ATTEMPT_NAME}/${YARN_CONTAINER_ID}/__package/lib.
> >
> > Changing log level usually would mean that you will need to re-build the
> > binary package and deploy. Are you looking for a method to dynamically
> > change the log levels for running containers in YARN?
> >
> > -Yi
> >
> >
> > On Mon, Sep 17, 2018 at 7:14 AM Debraj Manna <subharaj.manna@gmail.com>
> > wrote:
> >
> > > Hi
> > >
> > > Can someone let me know how can I change the log level for a samza
> > > application running inside YARN?
> > >
> > > Samza Version - 0.13.1
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message