[ 
https://issues.apache.org/jira/browse/YARN-5562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15436682#comment-15436682
 ] 

Rohith Sharma K S commented on YARN-5562:
-----------------------------------------

Exception trace is as follows
{noformat}
Caused by: java.lang.NullPointerException: userId shouldn't be null
        at 
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.reader.ApplicationEntityReader.validateParams(ApplicationEntityReader.java:336)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineEntityReader.readEntities(TimelineEntityReader.java:249)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.HBaseTimelineReaderImpl.getEntities(HBaseTimelineReaderImpl.java:86)
        at 
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderManager.getEntities(TimelineReaderManager.java:141)
        at 
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWebServices.getEntities(TimelineReaderWebServices.java:562
{noformat}

and 
{noformat}
Caused by: java.lang.NullPointerException: userId shouldn't be null
        at 
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.reader.FlowRunEntityReader.validateParams(FlowRunEntityReader.java:89)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineEntityReader.readEntities(TimelineEntityReader.java:249)
        at 
org.apache.hadoop.yarn.server.timelineservice.storage.HBaseTimelineReaderImpl.getEntities(HBaseTimelineReaderImpl.java:86)
        at 
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderManager.getEntities(TimelineReaderManager.java:141)
        at 
org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWebServices.getEntities(TimelineReaderWebServices.java:562)
{noformat}

> [Atsv2] system entities retrieval in REST throws NPE
> ----------------------------------------------------
>
>                 Key: YARN-5562
>                 URL: https://issues.apache.org/jira/browse/YARN-5562
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Rohith Sharma K S
>            Assignee: Rohith Sharma K S
>
> It is seen that when evene try to retrieval system entities throw NPE.  URL 
> /ws/v2/timeline/apps/{app-id}/entities 
> # for YARN_APPLICATION and YARN_FLOW_RUN
> {noformat}
>     {
>         "exception": "WebApplicationException",
>         "message": "java.lang.NullPointerException: userId shouldn't be null",
>         "javaClassName": "javax.ws.rs.WebApplicationException"
>     }
> {noformat}
> May be these entities can be skipped if not intended to use via REST apis.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to