oozie 客户端常用命令

转载 2013年12月02日 13:58:32

1.提交作业,作业进入PREP状态 
oozie job -oozie 
http://localhost:11000/oozie -config job.properties -submit 
job: 14-20090525161321-oozie-joe


2.执行已提交的作业

oozie job -oozie

http://localhost:11000/oozie -start 14-20090525161321-oozie-joe 

 

3.直接运行作业 
oozie job -oozie 
http://localhost:11000/oozie -config job.properties -run 

 

4.挂起作业,挂起前状态(RUNNING , RUNNIINGWITHERROR or PREP状态) 
workflow job will be in SUSPENDED status. 

 

5.杀死作业 
oozie job -oozie 
http://localhost:11000/oozie -kill 14-20090525161321-oozie-joe 

 

6.改变作业参数,不能修改killed状态的作业 
oozie job -oozie 
http://localhost:11000/oozie -change 14-20090525161321-oozie-joe -value endtime=2011-12-01T05:00Z;concurrency=100;2011-10-01T05:00Z 

7.重新运行作业 
oozie job -oozie 
http://localhost:11000/oozie -config job.properties -rerun 14-20090525161321-oozie-joe 
000000-130817230824019-oozie-ceny-W 
Rerunning a Coordinator Action or Multiple Actions 
$oozie job -rerun <coord_Job_id> [-nocleanup] [-refresh] 
[-action 1, 3-4, 7-40] (-action or -date is required to rerun.) 
[-date 2009-01-01T01:00Z::2009-05-31T23:59Z, 2009-11-10T01:00Z, 2009-12-31T22:00Z] 
Rerunning a Bundle Job 
oozie job -rerun <bundle_Job_id> [-nocleanup] [-refresh] 
[-coordinator c1, c3, c4] (-coordinator or -date is required to rerun.) 
[-date 2009-01-01T01:00Z::2009-05-31T23:59Z, 2009-11-10T01:00Z, 2009-12-31T22:00Z] 
(if neither -coordinator nor -date is given, the exception will be thrown.)

 

8.检查作业状态 
oozie job -oozie 
http://localhost:11000/oozie -info 14-20090525161321-oozie-joe

oozie job -oozie http://localhost:11000/oozie -info 0000001-111219170928042-oozie-para-W@mr-node -verbose 

 

9.查看日志 
oozie job -oozie 
http://localhost:11000/oozie -log 14-20090525161321-oozie-joe 
oozie job -log <coord_job_id> [-action 1, 3-4, 7-40] (-action is optional.)

 

10.检查xml文件是否合规 
oozie validate myApp/workflow.xml

 

11.提交pig作业 
oozie pig -oozie 
http://localhost:11000/oozie -file pigScriptFile -config job.properties -X -param_file params

 

12.提交MR作业 
oozie mapreduce -oozie 
http://localhost:11000/oozie -config job.properties

 

 

usage: 
      the env variable 'OOZIE_URL' is used as default value for the '-oozie' option 
      the env variable 'OOZIE_TIMEZONE' is used as default value for the '-timezone' option 
      custom headers for Oozie web services can be specified using '-Dheader:NAME=VALUE'      oozie help : display usage 

      oozie version : show client version 

      oozie job <OPTIONS> : job operations 
                -action <arg>         coordinator rerun on action ids (requires -rerun); coordinator log retrieval on action ids (requires -log) 
                -auth <arg>           select authentication type [SIMPLE|KERBEROS] 
                -change <arg>         change a coordinator/bundle job 
                -config <arg>         job configuration file '.xml' or '.properties' 
                -D <property=value>   set/override value for given property 
                -date <arg>           coordinator/bundle rerun on action dates (requires -rerun) 
                -definition <arg>     job definition 
                -doas <arg>           doAs user, impersonates as the specified user 
                -dryrun               Dryrun a workflow (since 3.3.2) or coordinator (since 2.0) job without actually executing it 
                -info <arg>           info of a job 
                -kill <arg>           kill a job 
                -len <arg>            number of actions (default TOTAL ACTIONS, requires -info) 
                -localtime            use local time (same as passing your time zone to -timezone). 
                                      Overrides -timezone option 
                -log <arg>            job log 
                -nocleanup            do not clean up output-events of the coordinator rerun actions 
                                      (requires -rerun) 
                -offset <arg>         job info offset of actions (default '1', requires -info) 
                -oozie <arg>          Oozie URL 
                -refresh              re-materialize the coordinator rerun actions (requires -rerun) 
                -rerun <arg>          rerun a job  (coordinator requires -action or -date; bundle requires -coordinator or -date) 
                -resume <arg>         resume a job 
                -run                  run a job 
                -start <arg>          start a job 
                -submit               submit a job 
                -suspend <arg>        suspend a job 
                -timezone <arg>       use time zone with the specified ID (default GMT). 
                                      See 'oozie info -timezones' for a list 
                -value <arg>          new endtime/concurrency/pausetime value for changing a 
                                      coordinator job; new pausetime value for changing a bundle job 
                -verbose              verbose mode 

      oozie jobs <OPTIONS> : jobs status 
                 -auth <arg>          select authentication type [SIMPLE|KERBEROS] 
                 -doas <arg>          doAs user, impersonates as the specified user. 
                 -filter <arg>        user=<U>;name=<N>;group=<G>;status=<S>;... 
                 -jobtype <arg>       job type ('Supported in Oozie-2.0 or later versions ONLY - coordinator' or 'wf' (default)) 
                 -len <arg>           number of jobs (default '100') 
                 -localtime           use local time (same as passing your time zone to -timezone). Overrides -timezone option 
                 -offset <arg>        jobs offset (default '1') 
                 -oozie <arg>         Oozie URL 
                 -timezone <arg>      use time zone with the specified ID (default GMT). See 'oozie info -timezones' for a list 
                 -verbose             verbose mode 

      oozie admin <OPTIONS> : admin operations 
                  -auth <arg>         select authentication type [SIMPLE|KERBEROS] 
                  -doas <arg>         doAs user, impersonates as the specified user. 
                  -oozie <arg>        Oozie URL 
                  -queuedump          show Oozie server queue elements 
                  -status             show the current system status 
                  -systemmode <arg>   Supported in Oozie-2.0 or later versions ONLY. Change oozie 
                                      system mode [NORMAL|NOWEBSERVICE|SAFEMODE] 
                  -version            show Oozie server build version 

      oozie validate <ARGS> : validate a workflow XML file 

      oozie sla <OPTIONS> : sla operations (Supported in Oozie-2.0 or later) 
                -auth <arg>           select authentication type [SIMPLE|KERBEROS] 
                -len <arg>            number of results (default '100', max limited by oozie server setting which defaults to '1000') 
                -offset <arg>         start offset (default '0') 
                -oozie <arg>          Oozie URL 
                -filter <arg>         jobid=<JobID/ActionID>\;appname=<Application Name> 

      oozie pig <OPTIONS> -X <ARGS> : submit a pig job, everything after '-X' are pass-through parameters to pig 
                -auth <arg>           select authentication type [SIMPLE|KERBEROS] 
                -doas <arg>           doAs user, impersonates as the specified user. 
                -config <arg>         job configuration file '.properties' 
                -D <property=value>   set/override value for given property 
                -file <arg>           Pig script 
                -oozie <arg>          Oozie URL 

      oozie info <OPTIONS> : get more detailed info about specific topics 
                -timezones   display a list of available time zones

oozie 常用命令

一、客户端命令 1.提交作业,作业进入PREP状态 oozie job -oozie http://localhost:11000/oozie -config job.properties -sub...

Oozie启动job状态SUSPENDED报错Inv…

从已经成功连接的机子考过来的一个编译得比较靠谱的oozie 4.3.0,运行一个样例程序,结果报错: 2017-02-23 18:57:48,667  WARN ActionStartXComman...

oozie详解

首页 ›› Oozie ›› 开源技术 ››Oozie工作流程定义详解2014-03-04 19:21:02 YanjunOozie工作流程定义是一个DAG(Directed Acyclical Gr...

Delphi7高级应用开发随书源码

  • 2003年04月30日 00:00
  • 676KB
  • 下载

oozie 客户端常用命令

转自地址:http://blog.csdn.net/mafuli007/article/details/17071519 原文地址:http://blog.csdn.net/zhu_xun/ar...
  • hblfyla
  • hblfyla
  • 2016年07月20日 09:35
  • 2058

Oozie提交作业总结

命令行方式最常用的就是通过命令行方式提交,见YARN和HDFS的调用方式汇总中的“使用oozie提交yarn作业环节。REST方式使用REST的方式显然更通用,当然原理与上述完全一致。步骤1–创建工作...

Alex 的 Hadoop 菜鸟教程: 第20课 工作流引擎 Oozie

简单的说Oozie是一个工作流引擎。只不过它是一个基于Hadoop的工作流引擎,在实际工作中,遇到对数据进行一连串的操作的时候很实用,不需要自己写一些处理代码了,只需要定义好各个action,然后把他...

oozie常见问题

通过异常信息,可以猜测应该是在执行任务时,配置没有读到,所以使用了默认的0.0.0.0:8030地址。为了验证是否是这个原因造成的,我们可以修改oozie/conf目录下的log4j的日志级别为调试。...

Oozie基础小结

Oozie是一个工作流引擎服务器,用于运行hadoop map/reduce和hive等任务工作流。 同时Oozie还是一个java web程序,运行在java servlet容器中,如tomcat...

oozie自带示例的运行

oozie自带示例的运行 一、运行示例前的准备工作 1.启动oozie oozie-start.sh或者oozie-run.sh,具体区别见上篇。 2.进入oozie的安装目录,解压oozie自带的e...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:oozie 客户端常用命令
举报原因:
原因补充:

(最多只允许输入30个字)