开发者

How to run the hadoop simple program through command line

I'm new to the hadoop technologies .How to run the simple program through command line.I'm using windows environment开发者_开发知识库.I install the Cygwin.Can you help me ...


Try the below URLs.

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 on Windows is not recommended for Production.


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

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


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

The syntax would be like this:

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

You review the docs for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜