YarnException: Unauthorized request to start container
This exception occurs when your nodes have different time settings.Make sure that your all 3 nodes have same time n timezone settings and then restart computer.
This worked for me . Hope this help to you as well !!!!
One of the options would be increasing lifespan of container by setting
yarn.resourcemanager.rm.container-allocation.expiry-interval-ms
which is by default is 10 min
E.g.
Service-Wide / Advanced
YARN Service Configuration Safety Valve for yarn-site.xml
<property> <name>yarn.resourcemanager.rm.container-allocation.expiry-interval-ms</name> <value>1000000</value> </property>
Beyond just the time settings, make sure the nodes are running NTP or are time-synced reasonably well - I had the same problem and discovered that one of the node had the wrong YEAR set in date. Once I put the times within seconds of each other, then the error went away.