[Solved] failed on connection exception: java.net.ConnectException: Connection denied

Processing method:
start ResourceManager
command:

yarn --daemon start resourcemanager

If failed on connection exception: java.net.connectexception: connection timeout occurs
just turn off the firewall.

Read More: