Details
Description
Hadoop services fail to start on boot because hadoop-config.sh fails. The following error message can be seen in the log:
cd: 36: can't cd to ../init.d
I'd suggest to replace the link resolution code with the usage of 'readlink -m -n'.