Hive query plan task, making mistakes will be appended to the query results local files, know how to improve, or why?????? :
, such as: write the following simple script
[HDP @ hdp02 hive_select] $vim a.s h
#!/bin/bash/
data=https://bbs.csdn.net/topics/` date + H_ d_ % Y % m % % % m `
Echo ${data}
Hive - e "select * from hive01. Dept;">/home/HDP/hive_select a001. TXT
- start the task
[HDP @ hdp02 hive_select] $crontab -e
* 5 * * * */sh/home/HDP/hive_select a.s h
- result:
[HDP @ hdp02 hive_select] $ll
Rw - r - r - 1 HDP HDP 0 Mar 6 07:10 a001. TXT
- question: after task execution query contents no additional a001. TXT file, a001. TXT file review is empty??????