简体   繁体   中英

command not found error on calling oozie action via shell script

I'm trying to trigger Oozie job through shell script. But on execution of shell script am getting the below error:

"command not found" error in the line: ooziejob =$(oozie job -oozie http://oozieserver:port/oozie -config /root/SqoopWrapper1/sqoop_job.properties -run);

My shell script consisting of oozie command is;

input=/root/SqoopWrapper1/InputFile.txt

echo "internal field sep"

IFS='|'

while read SourceDB db_name Mysql_table hdfsdir libpath

do

echo "do...while"
        if [ SourceDB = Mysql ]
        then
        driver = com.mysql.jdbc.Driver
        jdbcUri = jdbc:mysql://host:3306
        Mysql_table = WrapperTbl
        UserName = ****
        Password = ****
        fi

echo "Oozie command exe"

ooziejob =$(oozie job -oozie http://oozieserver:port/oozie -config /root/SqoopWrapper1/sqoop_job.properties -run);

echo $ooziejob;

done < $input


exit 0

You have a space before the equal-sign.

BTW, if you post this kind of questions, you should always say what shell and what OS you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM