1.验证wokflow.xml
oozie validate /appcom/apps/hduser0401/mbl_webtrends/workflow.xml 

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

3.执行已提交的作业

oozie job -oozie

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

查看oozie服务状态:

oozie  admin -oozie http://localhost:11000/oozie -status

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

#-D job_start=2016-11-10T02:00+0800 -- 起始日期(当天)
#-D job_end=2016-11-11T02:00+0800 -- 结束日期(当天+1)

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

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

7.改变作业参数,不能修改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

8.重新运行作业 
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.)

9.检查作业状态 
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

10.查看日志 
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.)

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. Oozie命令行常用命令汇总[转]

    Oozie命令行常用命令汇总 有时候脚本跑多了就不愿意在OozieWeb端去看脚本的运行情况了.还好Oozie提供了很多命令行命令.能通过命令行直接检索自己想看到的脚本信息.在这里简单进行一下总结.一 ...

  2. hadoop伪分布模式的配置和一些常用命令

    大数据的发展历史 3V:volume.velocity.variety(结构化和非结构化数据).value(价值密度低) 大数据带来的技术挑战 存储容量不断增加 获取有价值的信息的难度:搜索.广告.推 ...

  3. Linux 常用命令(持续补充)

    常用命令: command &:将进程放在后台执行 ctrl + z:暂停当前进程 并放入后台 jobs:查看当前后台任务 bg( %id):将任务转为后台执行 fg( %id):将任务调回前 ...

  4. LVM基本介绍与常用命令

    一.LVM介绍LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制LVM - 优点:LVM通常用于装备大量磁盘的系统,但它同样适 ...

  5. Linux学习笔记(一):常用命令

    经过统计Linux中能够识别的命令超过3000种,当然常用的命令就远远没有这么多了,按照我的习惯,我把已经学过的Linux常用命令做了以下几个方面的分割: 1.文件处理命令 2.文件搜索命令 3.帮助 ...

  6. git常用命令(持续更新中)

    git常用命令(持续更新中) 本地仓库操作git int                                 初始化本地仓库git add .                       ...

  7. 【原】npm 常用命令详解

    今年上半年在学习gulp的使用,对npm的掌握是必不可少的,经常到npm官网查询文档让我感到不爽,还不如整理了一些常用的命令到自己博客上,于是根据自己的理解简单翻译过来,终于有点输出,想学习npm这块 ...

  8. npm常用命令

    npm常用命令 环境:win7 npm 是什么 NPM(node package manager),通常称为node包管理器.顾名思义,它的主要功能就是管理node包,包括:安装.卸载.更新.查看.搜 ...

  9. Git 常用命令

    一.初始環境配置 git config --global user.name "John Doe"git config --global user.email johndoe@ex ...

随机推荐

  1. mysql取年、月、日、时间

    select id, phone,time,year(time),month(time), DAY(time),TIME(time) from user where phone='xxxxxx'  # ...

  2. 分布式交易系统的并发处理, 以及用Redis和Zookeeper实现分布式锁

    交易系统 交易系统的数据结构 支付系统API通常需要一个“订单号”作为入参, 而实际调用API接口时使用到的往往不是真正意义的业务订单号, 而是交易订单号.  支付系统的API会使用“商户号+订单号” ...

  3. 【MySQL】MySQL主从库配置和主库宕机解决方案

    1.转载:https://blog.csdn.net/zfl589778/article/details/51441719/ 2.效果:亲测有效,数据写入成功. 3.主机宕机后,如果不是长时间宕机,且 ...

  4. 如何在 CentOS 7 中安装或升级最新的内核

    虽然有些人使用 Linux 来表示整个操作系统,但要注意的是,严格地来说,Linux 只是个内核.另一方面,发行版是一个完整功能的系统,它建立在内核之上,具有各种各样的应用程序工具和库. 在正常操作期 ...

  5. ios中封装九宫格的使用(二级导航)

    效果图 一般用于导航功能 第一步下载http://pan.baidu.com/share/link?shareid=1824940819&uk=923776187 第二步 把下图内容放在你的x ...

  6. 20 道 Spring Boot 面试题

    转自:微信公众号:Java技术栈(id: javastack) 面试了一些人,简历上都说自己熟悉 Spring Boot, 或者说正在学习 Spring Boot,一问他们时,都只停留在简单的使用阶段 ...

  7. 怎么卸载用 make install 编译(源码)安装的软件?

    在linux 中用 ./configure && make && make install 后,如果想删除这个软件我应该怎么删除呢?好像有一个叫"make u ...

  8. IIS的应用程序池优化方法

    IIS应用程序池优化方案 服务器经常产生“应用程序池 'DefaultAppPool' 提供服务的进程关闭时间超过了限制.进程 ID 是 '3504'.”的错误,导致iis处于假死状态,经了解是IIS ...

  9. 【MAVEN】搜索错误“Index downloads are disabled,search results may be incomplete”

    出现上面这个错误,需要将Maven的索引下载到本地. 应用后,在Window -> Show View -> Other -> Maven -> Maven Repositor ...

  10. ==和equals的简单比较

    前言:==和equals这个两个东西,经常放在一块做比较,下面我也给出一个简单的例子,对他俩进行一个简单的比较,先看例子,然后在看结论.(实验环境:win7+jdk7) 1:==和equals简单比较 ...