[英]unable to run hive from shell action in oozie,can anyone help me one this
這分別是我的工作流程和錯誤日志。 Shell文件內容:
#!/bin/bash
echo
echo
echo "testing"
echo
export HIVE_CONF_DIR=
echo "hive job got started"
cd /opt/mapr/hive/hive-2.1/bin
echo /cygdrive/c/Projects/JLR/embedded_software/main_unit/arm
hive -e "use ozzie_test; create table if not exists test_edh1(name string, id int);"
result=0
if [ -ne 0 ]; then
echo "Hive error number is: "
exit 1
else
echo "hive job got completed successfully"
fi
錯誤信息:
getting the errorcode as 127
Hive error number is: 127
./testScript.sh: line 11: cd: /opt/mapr/hive/hive-2.1/bin: No such file or directory
./testScript.sh: line 13: **hive: command not found**
這是/opt/mapr/hive/hive-2.1/bin的hdfs路徑嗎? 如果是,則您嘗試在hdfs路徑上使用“ cd”命令,而Shell會在本地目錄中檢查該路徑,從而檢查錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.