Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: CDH 6.0.0
-
Fix Version/s: None
-
Component/s: Hadoop Common, Packaging
-
Labels:None
-
Environment:The bug in the startup script is on all platforms. The problem after reboot noticed in Ubuntu 18.04.
Description
hadoop-hdfs-datanode won't start after machine reboot because of missing /var/run/hadoop-hdfs directory.
There is simple bug in the hadoop-hdfs-datanode startup script:
install -d -m 0755 -o hdfs -g hdfs 1>/dev/null 2>&1 || :
The line should be:
install -d -m 0755 -o hdfs g hdfs /var/run/hadoop-hdfs 1>/dev/null 2>&1 || :