我创建了一个简单的pigscript,它加载10条记录并存储在一个表中。
当我使用oozie shell操作调用这个pig(存储在hdfs中)文件时,得到如下结果和错误:
>>> Invoking Shell command line now >>
Exit code of the Shell command 5
<<< Invocation of Shell command completed <<<
<<< Invocation of Main class completed <<<
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]
Oozie Launcher failed, finishing Hadoop job gracefully
我将shell文件放在工作区的lib文件夹中,并在同一lib文件夹中添加了所有必需的jar文件。请帮我解决这个问题。
1条答案
按热度按时间u59ebvdq1#
我通过以下步骤解决了这个问题:
job.properties文件:
shell文件: