我试图通过oozie使用shell脚本调用hive脚本。但它失败了。它与配置或我调用文件的方式有关吗? 我的环境中有5个数据节点。
注意:我理解通过hive操作调用hive脚本更容易。但我需要shell脚本才能工作,以便构建一个更大的shell脚本,我可以在其中进行各种变量操作。
File name : dly_date_tst.sh
Path : /scripts/Linux/dly_date_tst.sh ( in HDFS )
File content :
--------------
#!/bin/bash
hive -f /scripts/Linux/tst_tab.hql
Hive script name : tst_tab.hql
Path : /scripts/Linux/tst_tab.hql
File content :
--------------
CREATE TABLE default.san_tst
(
alt_rated_amount double
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ",";
>>> Invoking Shell command line now >>
Exit code of the Shell command 3
<<< 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
Oozie Launcher, uploading action data to HDFS sequence file: hdfs://nameservice1/user/sandeepj/oozie-oozi/0000448-171022104125648-oozie-oozi-W/shell-350f--shell/action-data.seq
Successfully reset security manager from org.apache.oozie.action.hadoop.LauncherSecurityManager@18e7143f to null
Oozie Launcher ends