6

I just deployed a oozie job. Now when I go to the oozie web ui ... i just cannot see the job I deployed.

Is there a command line tool which will allow me to do two things

  1. List all the jobs which are deployed (not running, active, killed)... but deployed. like an inventory of all jobs.

  2. execute a job from the command line. (on demand, not based on schedule).

Knows Not Much
  • 30,395
  • 60
  • 197
  • 373

1 Answers1

11

As already mentioned in one of the comments that ooziein itself is a command line tool.

Therefore, to answer both of your questions:

  1. List all jobs
    • For listing all workflow jobs use the following command
      1. oozie jobs
      2. oozie jobs -jobtype wf
    • For listing all coordinator jobs use the following command from the console
      1. oozie jobs -jobtype coordinator
  2. Execute a job from command line
    • oozie job --oozie http://oozie-url:11000/oozie -config job.properties -run

Mind you that if you want to keep on starting on demand job either you have to run the above command manually (also only for workflow jobs, not for coordinator jobs as coordinator jobs would be scheduled according to the schedule you define) or put in a shell script so that it is triggered under certain situations

For more info check this link - Oozie_Command_Line_Usage

Biplob Biswas
  • 1,761
  • 19
  • 33
  • i am following your answer but getting "Exception = Connection timed out" error. –  Jan 29 '18 at 12:50
  • Are you on the correct oozie-url and port? and do you have access to it from the machine you are using? – Biplob Biswas Jan 29 '18 at 13:16
  • actually i am using localhost only, but i am working in SSH secure shell , and other IP address. oozie job --oozie http://localhost:11000/oozie -config job.properties -run –  Jan 29 '18 at 13:32
  • You need to be sure oozie is running on the server and the correct port you are referring to(even if its your local machine, try giving the full qualified name) – Biplob Biswas Jan 30 '18 at 12:09
  • thank you. now it is connected but now problem is like status is showing only RUNNING, it is not changing only. what might be the problem? –  Jan 30 '18 at 13:08
  • I am not sure, you may create a new question with a bit more details, and then I or someone else can take a look. – Biplob Biswas Jan 31 '18 at 14:02