hadoop installed how write use the WordCount example?

I'm really new to Hadoop and not familiar to terminal commands. I followed step by step to install hadoop on my mac and can run some inner hadoop examples. However, when i tried to run the WordCount example, it generate many errors such as org.apache can't be resolved. The post online said you should put it in where you write your java code.. I used to use eclipse. However, in Eclipse there're so many errors that the project was enable to be compiled.

And suggestion? Thanks!


Assuming you have also followed the directions to start up a local cluster, or pseudo-distributed cluster, then here is the easiest way.

Go to the hadoop directory, which should be whatever directory is unzipped when you download the hadoop library from apache. From there you can run these command to run hadoop

for Hadoop version 0.23.*

cd $HOME/path/to/hadoop-0.23.* ./bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-0.23.5.jar wordcount myinput outputdir

for Hadoop version 0.20.*

cd $HOME/path/to/hadoop-0.20.* ./bin/hadoop jar hadoop-0.20.2-examples.jar wordcount myinput outputdir

Need Your Help

Different color after bottom line

emacs color-scheme

I'm a vim user trying to feel at home in Emacs. I really like the different color for the null lines at the bottom I have in vim, like in this image:

Static side menu with changing content

xaml windows-store-apps

I would like to create an app with a static side menu, which never changes and takes up 10% of the view.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.