* ranjinibe...@gmail.com
Date: Fri, Mar 21, 2014 at 9:57 AM
To: ranjin...@polarisft.com
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Fri, Mar 21, 2014 at 7:43 AM
Subject: Re: Need FileName with Content
--
From: *Ranjini Rathinam* ranjinibe
: Stanley Shi s...@gopivotal.com
Date: Fri, Mar 21, 2014 at 7:43 AM
Subject: Re: Need FileName with Content
--
From: *Ranjini Rathinam* ranjinibe...@gmail.com
Date: Fri, Mar 21, 2014 at 9:58 AM
To: ranjin...@polarisft.com
...@polarisft.com
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Fri, Mar 21, 2014 at 7:43 AM
Subject: Re: Need FileName with Content
--
From: *Ranjini Rathinam* ranjinibe...@gmail.com
Date: Fri, Mar 21, 2014 at 9:58 AM
To: ranjin...@polarisft.com
On Thu, Mar 20, 2014 at 10:56 AM, Ranjini Rathinam ranjinibe...@gmail.com
wrote:
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Thu, Mar 20, 2014 at 7:39 AM
Subject: Re: Need FileName with Content
To: user@hadoop.apache.org
You want
:
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Thu, Mar 20, 2014 at 7:39 AM
Subject: Re: Need FileName with Content
To: user@hadoop.apache.org
You want to do a word count for each file, but the code give you a word
count for all the files, right?
=
word.set
:
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Thu, Mar 20, 2014 at 7:39 AM
Subject: Re: Need FileName with Content
To: user@hadoop.apache.org
You want to do a word count for each file, but the code give you a word
count for all the files, right
Hi,
I have folder named INPUT.
Inside INPUT i have 5 resume are there.
hduser@localhost:~/Ranjini$ hadoop fs -ls /user/hduser/INPUT
Found 5 items
-rw-r--r-- 1 hduser supergroup 5438 2014-03-18 15:20
/user/hduser/INPUT/Rakesh Chowdary_Microstrategy.txt
-rw-r--r-- 1 hduser supergroup
You want to do a word count for each file, but the code give you a word
count for all the files, right?
=
word.set(tokenizer.nextToken());
output.collect(word, one);
==
change it to:
word.set(filename++tokenizer.nextToken());
output.collect(word,one);
Regards,
*Stanley
:
-- Forwarded message --
From: Stanley Shi s...@gopivotal.com
Date: Thu, Mar 20, 2014 at 7:39 AM
Subject: Re: Need FileName with Content
To: user@hadoop.apache.org
You want to do a word count for each file, but the code give you a word
count for all the files, right