Created on 01-18-2017 02:17 PM
On RHEL/CentOS you might encounter an exception when trying to stop or restart Oozie :
resource_management.core.exceptions.Fail: Execution of 'cd /var/tmp/oozie && /usr/hdp/current/oozie-server/bin/oozie-stop.sh' returned 1. -bash: line 0: cd: /var/tmp/oozie: No such file or directory
This is likely because of a shell crontab /etc/cron.daily/tmpwatch which delete files/directories unmodified for 30d+
[root@local ~]# cat /etc/cron.daily/tmpwatch #! /bin/sh flags=-umc /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \ -X '/tmp/hsperfdata_*' 10d /tmp /usr/sbin/tmpwatch "$flags" 30d /var/tmp for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do if [ -d "$d" ]; then /usr/sbin/tmpwatch "$flags" -f 30d "$d" fi done
Just recreate the directory and you're good to go
[root@local ~]# mkdir /var/tmp/oozie [root@local ~]# chown oozie:hadoop /var/tmp/oozie [root@local ~]# chmod 755 /var/tmp/oozie
User | Count |
---|---|
758 | |
379 | |
316 | |
309 | |
268 |