hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinod Kumar Vavilapalli <vino...@hortonworks.com>
Subject Re: Can't find logs in YARN
Date Thu, 19 Feb 2015 18:07:24 GMT

All logs (including stdout/stderr) should be accessible from the web-UI. You should navigate
to the YARN web application and then to the MapReduce specific pages from there.


On Feb 19, 2015, at 8:46 AM, xeonmailinglist <xeonmailinglist@gmail.com> wrote:

> I have this map function that is printing something to the system output, but I can't
find the output.
> Where YARN prints the logs of the function of map and reduce defined by the user?
> public static class TokenizerMapper 
>     extends Mapper<Object, Text, Text, IntWritable>{
>         private final static IntWritable one = new IntWritable(1);
>         private Text word = new Text();
>         public void map(Object key, Text value, Context context
>                 ) throws IOException, InterruptedException {
>             System.out.println(value.toString());
>             StringTokenizer itr = new StringTokenizer(value.toString());
>             while (itr.hasMoreTokens()) {
>                 word.set(itr.nextToken());
>                 context.write(word, one);
>             }
>         }
>     }

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message