Reader small image

You're reading from  Apache Oozie Essentials

Product typeBook
Published inDec 2015
Reading LevelIntermediate
Publisher
ISBN-139781785880384
Edition1st Edition
Languages
Right arrow
Author (1)
Jagat Singh
Jagat Singh
author image
Jagat Singh

Contacted on 12/01/18 by Davis Anto
Read more about Jagat Singh

Right arrow

Running a Hive job from the command line


We can submit the Oozie Hive job from the command line. To see the Oozie help menu, we need to pass the arguments shown in the following screenshot:

Hive command-line options

The code for this section of chapter is present in the hive_commandline file placed at <BOOK_CODE_HOME>/learn_oozie/ch06/.

The Hive script used is pretty simple. It is just loading data into the Hive table using the LOAD command as follows:

LOAD DATA INPATH '/user/hue/learn_oozie/ch06/hive_commandline/input' INTO TABLE CH06_RAINFALL_TREND;

To run the job, we can use the following command:

oozie hive -config job.properties -file Insert.hql -oozie http://localhost:11000/oozie

Check the status of the job in the Oozie web console. The job should finish successfully.

In the next section, we will see the Hive action of Oozie.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apache Oozie Essentials
Published in: Dec 2015Publisher: ISBN-13: 9781785880384

Author (1)

author image
Jagat Singh

Contacted on 12/01/18 by Davis Anto
Read more about Jagat Singh