I think if you are setting up hostname as ‘local’, you also should add it in the /etc/hosts file and make it resolves correctly (not localhost IP 127.0.01). Per your /etc/host file you can try set hostname to hdp01 and try to use non-localhost IP.
Something like below could work:
#remove local from first line
127.0.0.1 localhost.localdomain localhost
Hope this helps.