hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Yang" <richardy...@richardyang.net>
Subject RE: Problem running sample Grep
Date Thu, 01 Mar 2007 08:08:49 GMT
Hello David,

Thank you for responding to my help.  I have only been using version 0.11.2.
I have to run grep in the single node as illustrated in the manual online
and it looks successful.  Doesn't the 
'bin/hadoop jar hadoop-0.11.3-dev-examples.jar grep /bar/ac /tmp/ac foo'
test the single node mode only?
Because toward the end of the manual the distributed version of sample Grep
is mentioned as 
"bin/hadoop org.apache.hadoop.samples.Grep myinput myoutput 'dfs'"
I am trying to make sure it runs on 2 nodes before I add more machine to it.
Thank you.

Best Regards
 
Richard Yang
richardyang@richardyang.net
kusanagiyang@gmail.com
 
 
-----Original Message-----
From: David Bowen [mailto:dbowen@yahoo-inc.com] 
Sent: Wednesday, February 28, 2007 10:21 PM
To: hadoop-user@lucene.apache.org
Subject: Re: Problem running sample Grep


Here's how I run it:

bin/hadoop jar hadoop-0.11.3-dev-examples.jar grep /bar/ac /tmp/ac foo

- David

Richard Yang wrote:
> Hello,
>
>  
>
> I am new to Hadoop.  After setting my testing environment (which I am not
> sure if it is correct), I tried to run the Grep sample by
>
> Bin/hadoop org.apache.hadoop.samples.Grep myinput myoutput 'dfs'
>
> However, it always says 'Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/hadoop/examples/Grep'
>
> I didn't know what went wrong.
>
> Any help is appreciated.  Thanks.
>
>  
>
> Best Regards
>
>  
>
> Richard Yang
>
>  <mailto:richardyang@richardyang.net> richardyang@richardyang.net
>
>  <mailto:kusanagiyang@gmail.com> kusanagiyang@gmail.com
>
>  
>
>  
>
>  
>
>
>   




Mime
View raw message