0
votes

I am trying to run shell script in Oozie using Hue. However it is not running and give exception.

My Shell script file:

#! /bin/bash
hive -e 'desc emptable;'

=======================================

Also added same script file in FILE option in script action.

=======================================

Gives exceptions: Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]

=========================================

I also tried with hive-site file, added in FILE option. but not worked.

2
What happens when you execute your script from the command-line ? Does it have correct execution permission ? - philant
Yes, Script was ran without any exceptions. and give correct result - Manish Saraf Bhardwaj

2 Answers

0
votes

Oozie has a specific Hive action, and for a good reason: on a standard Hadoop setup, Hive/Pig/whatever are not installed on the "slave" nodes.

I suggest that you read some documentation on your own.

0
votes

You should check the logs of the action on the graph of the workflow dashboard page, it should print what really happened.

In the latest Hue, there is even an HiveServer2 action.