The error which you are getting can be resolved by adding a property to the configuration file.
Please try the below steps to see the logs:
- Open in your cluster yarn-site.xml.
- Add the property in that:
<property>
<name>yarn.log-aggregation-enable</name>
<value>true</value>
</property>
Let me know if this resolves your query.