Search code examples
hadoopworkflowhadoop-yarnsqoopoozie

Run hadoop job in oozie using jar file


I have a jar file which is having sqoop job to read and write the data into mysql.

I want run the jar using oozie workflow and below is the command run the jar.

yarn jar aa-datalake.jar root root Orders avro aa-dl-rawzone

For this which action may I need to use?


Solution

  • It is probably not the best idea to create an extra java wrapper upon your Sqoop job. You can use Sqoop directly from Oozie by using Sqoop action. You can set there same parameters you are using from your java app. If you still want to use your wrapper you can use Java action for this. But personally I consider this to be a piece of overhead for the task you've described.