Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.37 KB

job.mkd

File metadata and controls

42 lines (33 loc) · 1.37 KB

% Hadoop作业管理 % 上海交通大学OmniLab
http://omnilab.sjtu.edu.cn % 2013年11月27日 更新

Hadoop作业提交的一般形式

hadoop命令的一般形式:

$ hadoop -h
Usage: hadoop [--config confdir] COMMAND
       where COMMAND is one of:
  fs                   run a generic filesystem user client
  version              print the version
  jar <jar>            run a jar file
  checknative [-a|-h]  check native hadoop and compression libraries availability
  distcp <srcurl> <desturl> copy file or directories recursively
  archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
  classpath            prints the class path needed to get the
                       Hadoop jar and the required libraries
  daemonlog            get/set the log level for each daemon
 or
  CLASSNAME            run the class named CLASSNAME

Most commands print help when invoked w/o parameters.

提交作业使用的主要子命令是jar,其主要附加参数如下:

  • -files
  • -libjars
  • -archives

TODO

  • 改进关于hadoop命令的说明,增加MapReduce作业运行过程的说明。
  • 在命令行,而不是代码中指定这些参数:作业名、并行Mapper/Reducer数量;

参考资料