Re: How to modify hadoop-wordcount example to display File-wise results.

2012-03-29 Thread Raj Vishwanathan
>Subject: Re: How to modify hadoop-wordcount example to display File-wise >results. > >Hi Aaron, >I guess that it can be done by using counters. >You can define a counter for each node in your cluster and then, in map method >increment a node specific counter either by checking h

Re: How to modify hadoop-wordcount example to display File-wise results.

2012-03-29 Thread Ajay Srivastava
Hi Aaron, I guess that it can be done by using counters. You can define a counter for each node in your cluster and then, in map method increment a node specific counter either by checking hostname or ip address. It's not a very good solution as you will need to modify your code whenever a node i

Re: How to modify hadoop-wordcount example to display File-wise results.

2012-03-29 Thread aaron_v
Hi people, Am new to Nabble and Hadoop. I was having a look at the wordcount program. Can someone please let me know how to find which data gets mapped to which node?In the sense, I have a master node 0 and 4 other nodes 1-4 and I ran the wordcount successfully. But I would like to print for each

Re: How to modify hadoop-wordcount example to display File-wise results.

2012-02-28 Thread orayvah
Hi Srilathar, I know this thread is quite old but I need your help with this. I'm interested in also making some modifications to the hadoop Sort example. Please could you give me pointers on how to rebuild hadoop to reflect the changes made in the source. I'm new to hadoop and would really app