Re: Need FileName with Content

2014-03-21 Thread Ranjini Rathinam
* 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

Re: Need FileName with Content

2014-03-21 Thread Ranjini Rathinam
: 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

Re: Need FileName with Content

2014-03-21 Thread Shahab Yunus
...@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

Re: Need FileName with Content

2014-03-20 Thread Felix Chern
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

Re: Need FileName with Content

2014-03-20 Thread Stanley Shi
: -- 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

Re: Need FileName with Content

2014-03-20 Thread Stanley Shi
: -- 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

Need FileName with Content

2014-03-19 Thread Ranjini Rathinam
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

Re: Need FileName with Content

2014-03-19 Thread Stanley Shi
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

Re: Need FileName with Content

2014-03-19 Thread Ranjini Rathinam
: -- 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