关于网友提出的“ sqoop导出到mysql 在linux中定时任务不能执行”问题疑问,本网通过在网上对“ sqoop导出到mysql 在linux中定时任务不能执行”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: sqoop导出到mysql 在linux中定时任务不能执行描述:
shellhive sqoopshellsqoophivemysql
功能描述:将hive中的数据到出到mysql。在linux中,crontab -e中加入定时任务,脚本为test.sh,内容如下:
sqoop export --connect jdbc:mysql://192.168.80.101:3306/test --username root --password root \
--table RST_ERR --export-dir /user/hive/warehouse/test.db/rst_err --input-fields-terminated-by '\001'
该脚本使用 ./test.sh ,这种方式可以执行,数据也可以导出到mysql,
但是 写到定时任务中 "30 14 * * * /home/test.sh",这个脚本就不执行了,求教原因,谢谢 急用