开发者

How to run the hadoop simple program through command line

开发者 https://www.devze.com 2023-03-24 22:39 出处:网络
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.

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

精彩评论

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