YARN-9968. Public Localizer is exiting in NodeManager due to NullPointerException. Contributed by Tarun Parimi
This commit is contained in:
parent
8afabe41e4
commit
4c1a1287bc
|
@ -995,8 +995,10 @@ public class ResourceLocalizationService extends CompositeService
|
||||||
getLocalResourcesTracker(LocalResourceVisibility.APPLICATION, user, applicationId);
|
getLocalResourcesTracker(LocalResourceVisibility.APPLICATION, user, applicationId);
|
||||||
final String diagnostics = "Failed to download resource " +
|
final String diagnostics = "Failed to download resource " +
|
||||||
assoc.getResource() + " " + e.getCause();
|
assoc.getResource() + " " + e.getCause();
|
||||||
tracker.handle(new ResourceFailedLocalizationEvent(
|
if(tracker != null) {
|
||||||
assoc.getResource().getRequest(), diagnostics));
|
tracker.handle(new ResourceFailedLocalizationEvent(
|
||||||
|
assoc.getResource().getRequest(), diagnostics));
|
||||||
|
}
|
||||||
publicRsrc.handle(new ResourceFailedLocalizationEvent(
|
publicRsrc.handle(new ResourceFailedLocalizationEvent(
|
||||||
assoc.getResource().getRequest(), diagnostics));
|
assoc.getResource().getRequest(), diagnostics));
|
||||||
LOG.error(diagnostics);
|
LOG.error(diagnostics);
|
||||||
|
|
Loading…
Reference in New Issue