The Pig command line

The Pig command for running command-line options is shown in the following screenshot:

The Pig command line

Oozie Pig command line

To run the same Pig Oozie script that we used in Chapter 3, Oozie Fundamentals, use the following command:

oozie pig -file <BOOK_CODE_HOME>/learn_oozie/ch03/pig/replace_delimiters.pig -oozie http://localhost:11000/oozie -P
inputPath=/user/hue/learn_oozie/ch03/input/ -P
outputPath=/user/hue/learn_oozie/ch05/pig_commandline/output -config job.properties

The path for -file is a local path from where the command is being submitted, not HDFS. The job we submit runs as soon as it is submitted.

All the JAR files and other files ...

Get Apache Oozie Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.