How to run a simple hadoop program through the command line

I am new to hadoop technology. How to run a simple program through the command line. I am using windows environment. I install Cygwin.Can, you help me ...

+4
source share
3 answers

Try using the URLs below.

http://v-lad.org/Tutorials/Hadoop/00%20-%20Intro.html

http://hayesdavis.net/2008/06/14/running-hadoop-on-windows/

If you are new to Hadoop, try using one of the IDE plugins. This will help you get started quickly.

http://karmasphere.com/Studio-Eclipse/quick-click-guide.html

http://wiki.apache.org/hadoop/EclipsePlugIn

FYI ..... Hadoop for Windows is not recommended for production.

+3
source

Is your program written in Java? If so, you need to compile your program and pack the compiled files into a Jar file. Then run the program with the hadoop command:

${hadoop_home}/bin/hadoop jar ${your_program_jar_file} ${main_class_of_jar} 
0
source

You can run Hadoop commands from anywhere on the terminal / command line, but only if the $path variable is set.

The syntax will be like this:

 hadoop fs -<command> or hdfs fs -<command> 

You will review the documents for more information.

0
source

All Articles