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 Siddu <si...@gmail.com> on 2009/11/29 08:20:36 UTC

call trace help

Hi all,

I am interested to see the each and every call trace if i issue a command

for ex : $bin/hadoop dfs -copyFromLocal /tmp/file.txt /user/hadoop/file.txt

or while  running a M/R job .....

Is there any command to sprinkle the logs at the begin of each and every
function and build the source ....

may i know how to go about doing this ?

-- 
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him

Re: call trace help

Posted by Amandeep Khurana <am...@gmail.com>.
Sample: java -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y -jar calc.jar

You can find more example on the internet.

-ak


Amandeep Khurana
Computer Science Graduate Student
University of California, Santa Cruz


On Sun, Nov 29, 2009 at 9:43 AM, Siddu <si...@gmail.com> wrote:

> On Sun, Nov 29, 2009 at 12:52 PM, Amandeep Khurana <am...@gmail.com>
> wrote:
>
> > Run the daemons in debug mode and attach eclipse as a remote debugger to
> > them.
> >
>  Can some body please brief me the steps ?
>
> > -ak
> >
> >
> > Amandeep Khurana
> > Computer Science Graduate Student
> > University of California, Santa Cruz
> >
> >
> > On Sat, Nov 28, 2009 at 11:20 PM, Siddu <si...@gmail.com> wrote:
> >
> > > Hi all,
> > >
> > > I am interested to see the each and every call trace if i issue a
> command
> > >
> > > for ex : $bin/hadoop dfs -copyFromLocal /tmp/file.txt
> > /user/hadoop/file.txt
> > >
> > > or while  running a M/R job .....
> > >
> > > Is there any command to sprinkle the logs at the begin of each and
> every
> > > function and build the source ....
> > >
> > > may i know how to go about doing this ?
> > >
> > > --
> > > Regards,
> > > ~Sid~
> > > I have never met a man so ignorant that i couldn't learn something from
> > him
> > >
> >
>
>
>
> --
> Regards,
> ~Sid~
> I have never met a man so ignorant that i couldn't learn something from him
>

Re: call trace help

Posted by Siddu <si...@gmail.com>.
On Sun, Nov 29, 2009 at 12:52 PM, Amandeep Khurana <am...@gmail.com> wrote:

> Run the daemons in debug mode and attach eclipse as a remote debugger to
> them.
>
 Can some body please brief me the steps ?

> -ak
>
>
> Amandeep Khurana
> Computer Science Graduate Student
> University of California, Santa Cruz
>
>
> On Sat, Nov 28, 2009 at 11:20 PM, Siddu <si...@gmail.com> wrote:
>
> > Hi all,
> >
> > I am interested to see the each and every call trace if i issue a command
> >
> > for ex : $bin/hadoop dfs -copyFromLocal /tmp/file.txt
> /user/hadoop/file.txt
> >
> > or while  running a M/R job .....
> >
> > Is there any command to sprinkle the logs at the begin of each and every
> > function and build the source ....
> >
> > may i know how to go about doing this ?
> >
> > --
> > Regards,
> > ~Sid~
> > I have never met a man so ignorant that i couldn't learn something from
> him
> >
>



-- 
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him

Re: call trace help

Posted by Amandeep Khurana <am...@gmail.com>.
Run the daemons in debug mode and attach eclipse as a remote debugger to
them.

-ak


Amandeep Khurana
Computer Science Graduate Student
University of California, Santa Cruz


On Sat, Nov 28, 2009 at 11:20 PM, Siddu <si...@gmail.com> wrote:

> Hi all,
>
> I am interested to see the each and every call trace if i issue a command
>
> for ex : $bin/hadoop dfs -copyFromLocal /tmp/file.txt /user/hadoop/file.txt
>
> or while  running a M/R job .....
>
> Is there any command to sprinkle the logs at the begin of each and every
> function and build the source ....
>
> may i know how to go about doing this ?
>
> --
> Regards,
> ~Sid~
> I have never met a man so ignorant that i couldn't learn something from him
>