Sunday, January 31, 2016

Oozie cheat sheet

1. Start/Stop oozie service
service oozie start
service oozie stop
service oozie status

2. Check oozie health
[root@admin]# oozie admin -oozie http://localhost:11000/oozie -status
System mode: NORMAL
Or you can set environment variable OOZIE_URL to skip -oozie option:
[root@admin]# export OOZIE_URL=http://localhost:11000/oozie
[root@admin]# oozie admin -status
System mode: NORMAL
3. Oozie version.
[root@admin]# oozie admin -version
Oozie server build version: 4.0.0-cdh5.0.2
4. Oozie web console address.
http://<OOZIE_HOSTNAME>:11000/oozie
5. Oozie share libs
hdfs dfs -ls /user/oozie/share/lib
6. Start a job
[root@admin]# oozie job -config examples/apps/map-reduce/job.properties -run
job: 0000000-140711123346649-oozie-oozi-W
7. Check status of job
[root@admin]# oozie job -info 0000000-140711123346649-oozie-oozi-W
Job ID : 0000000-140711123346649-oozie-oozi-W
------------------------------------------------------------------------------------------------------------------------------------
Workflow Name : map-reduce-wf
App Path      : hdfs://nameservice1/user/root/examples/apps/map-reduce
Status        : RUNNING
Run           : 0
User          : root
Group         : -
Created       : 2014-07-11 22:14 GMT
Started       : 2014-07-11 22:14 GMT
Last Modified : 2014-07-11 22:14 GMT
Ended         : -
CoordAction ID: -

Actions
------------------------------------------------------------------------------------------------------------------------------------
ID                                                                            Status    Ext ID                 Ext Status Err Code
------------------------------------------------------------------------------------------------------------------------------------
0000000-140711123346649-oozie-oozi-W@:start:                                  OK        -                      OK         -
------------------------------------------------------------------------------------------------------------------------------------
0000000-140711123346649-oozie-oozi-W@mr-node                                  RUNNING   job_1404818506021_0001 RUNNING    -
------------------------------------------------------------------------------------------------------------------------------------
==

No comments:

Post a Comment

Popular Posts