You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by elton sky <el...@gmail.com> on 2010/06/19 05:15:48 UTC

Set LOG.Info in FileInputFormat.java doesn't work!?

Hello fellas,

problem here. I am trying to get some runtime info in FileInputFormat.java
and I try to use LOG.info(). However it never seems write anything into log
file. I tried to grep the "logs" directory and could not find the info
supposed to be printed out.

Any idea on this?

BTW, any other way I can use to debug like this?

Regards,
Elton

Re: Set LOG.Info in FileInputFormat.java doesn't work!?

Posted by elton sky <el...@gmail.com>.
Actually I shouldn't have called it "runtime information". What I want to
get is some values of variables in FileInputFormat.java when a MapReduce job
is running, so I tried to print them into log file.

any idea in that case?

On Sun, Jun 20, 2010 at 4:03 AM, Ted Yu <yu...@gmail.com> wrote:

> If you outline what runtime information you want to collect, other people
> may be able to help you better.
>
> There're two ways to collect such data without modifying hadoop source
> code:
> through JMX metrics exposed by hadoop, such as HEAP_MEMORY_USED and
> datanode.CAPACITY
> through snmp metrics by using snmp4j
>
> On Fri, Jun 18, 2010 at 8:15 PM, elton sky <el...@gmail.com> wrote:
>
> > Hello fellas,
> >
> > problem here. I am trying to get some runtime info in
> FileInputFormat.java
> > and I try to use LOG.info(). However it never seems write anything into
> log
> > file. I tried to grep the "logs" directory and could not find the info
> > supposed to be printed out.
> >
> > Any idea on this?
> >
> > BTW, any other way I can use to debug like this?
> >
> > Regards,
> > Elton
> >
>

Re: Set LOG.Info in FileInputFormat.java doesn't work!?

Posted by Ted Yu <yu...@gmail.com>.
If you outline what runtime information you want to collect, other people
may be able to help you better.

There're two ways to collect such data without modifying hadoop source code:
through JMX metrics exposed by hadoop, such as HEAP_MEMORY_USED and
datanode.CAPACITY
through snmp metrics by using snmp4j

On Fri, Jun 18, 2010 at 8:15 PM, elton sky <el...@gmail.com> wrote:

> Hello fellas,
>
> problem here. I am trying to get some runtime info in FileInputFormat.java
> and I try to use LOG.info(). However it never seems write anything into log
> file. I tried to grep the "logs" directory and could not find the info
> supposed to be printed out.
>
> Any idea on this?
>
> BTW, any other way I can use to debug like this?
>
> Regards,
> Elton
>