From yarn-issues-return-141369-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Apr 3 09:15:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 38F8B180675 for ; Tue, 3 Apr 2018 09:15:05 +0200 (CEST) Received: (qmail 49519 invoked by uid 500); 3 Apr 2018 07:15:04 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 49507 invoked by uid 99); 3 Apr 2018 07:15:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2018 07:15:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B112C1A07E9 for ; Tue, 3 Apr 2018 07:15:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DyNzIlIubW1i for ; Tue, 3 Apr 2018 07:15:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 06A3B5F1B4 for ; Tue, 3 Apr 2018 07:15:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 69F8EE021B for ; Tue, 3 Apr 2018 07:15:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 267FF25612 for ; Tue, 3 Apr 2018 07:15:00 +0000 (UTC) Date: Tue, 3 Apr 2018 07:15:00 +0000 (UTC) From: "Charan Hebri (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-8107) NPE when incorrect format is used in ATSv2 filter attributes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-8107?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Charan Hebri updated YARN-8107: ------------------------------- Priority: Major (was: Critical) > NPE when incorrect format is used in ATSv2 filter attributes > ------------------------------------------------------------ > > Key: YARN-8107 > URL: https://issues.apache.org/jira/browse/YARN-8107 > Project: Hadoop YARN > Issue Type: Bug > Components: ATSv2 > Reporter: Charan Hebri > Priority: Major > > Using an incorrect format for infofilters, conffilters and metricfilters = throws a NPE with no=C2=A0clear message to the caller. This should be tagge= d as a 400 Bad Request with an informative message. Below is the timeline r= eader log. > {noformat} > 2018-04-02 06:44:10,451 INFO=C2=A0 reader.TimelineReaderWebServices (Time= lineReaderWebServices.java:handleException(173)) - Processed URL /ws/v2/tim= eline/users/hrt_qa/flows/flow4/runs/1/apps?infofilters=3DUIDeq but encounte= red exception (Took 0 ms.) > 2018-04-02 06:44:10,451 ERROR reader.TimelineReaderWebServices (TimelineR= eaderWebServices.java:handleException(188)) - Error while processing REST r= equest > java.lang.NullPointerException > at org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFi= lterUtils.createHBaseFilterList(TimelineFilterUtils.java:276) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.Applicati= onEntityReader.constructFilterListBasedOnFilters(ApplicationEntityReader.ja= va:126) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineE= ntityReader.createFilterList(TimelineEntityReader.java:157) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineE= ntityReader.readEntities(TimelineEntityReader.java:277) > at org.apache.hadoop.yarn.server.timelineservice.storage.HBaseTimelineRea= derImpl.getEntities(HBaseTimelineReaderImpl.java:87) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderMan= ager.getEntities(TimelineReaderManager.java:143) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.getEntities(TimelineReaderWebServices.java:605) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.getFlowRunApps(TimelineReaderWebServices.java:1962) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMet= hodInvokerFactory.java:60) > at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMetho= dDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchPr= ovider.java:185) > at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDis= patcher.dispatch(ResourceJavaMethodDispatcher.java:75) > at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodR= ule.java:302) > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan= dPathRule.java:147) > at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resource= ClassRule.java:108) > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan= dPathRule.java:147) > at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(Ro= otResourceClassesRule.java:84) > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleReque= st(WebApplicationImpl.java:1542) > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleReque= st(WebApplicationImpl.java:1473) > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques= t(WebApplicationImpl.java:1419) > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques= t(WebApplicationImpl.java:1409) > at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent= .java:409) > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC= ontainer.java:558) > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC= ontainer.java:733) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1772) > at org.apache.hadoop.yarn.server.timelineservice.reader.security.Timeline= ReaderWhitelistAuthorizationFilter.doFilter(TimelineReaderWhitelistAuthoriz= ationFilter.java:85) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.= doFilter(AuthenticationFilter.java:644) > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.= doFilter(AuthenticationFilter.java:592) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.security.http.CrossOriginFilter.doFilter(CrossOrigin= Filter.java:98) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpSer= ver2.java:1601) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:= 582) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja= va:143) > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java= :548) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandle= r.java:226) > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandle= r.java:1180) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:5= 12) > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler= .java:185) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler= .java:1112) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja= va:141) > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColle= ction.java:119) > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.= java:134) > at org.eclipse.jetty.server.Server.handle(Server.java:534) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) > at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java= :251) > at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Abstrac= tConnection.java:283) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) > at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint= .java:93) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executePr= oduceConsume(ExecuteProduceConsume.java:303) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceCo= nsume(ExecuteProduceConsume.java:148) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Execu= teProduceConsume.java:136) > at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool= .java:671) > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.= java:589) > at java.lang.Thread.run(Thread.java:748) > 2018-04-02 06:44:10,453 WARN=C2=A0 webapp.GenericExceptionHandler (Generi= cExceptionHandler.java:toResponse(98)) - INTERNAL_SERVER_ERROR > javax.ws.rs.WebApplicationException: java.lang.NullPointerException > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.handleException(TimelineReaderWebServices.java:189) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.getEntities(TimelineReaderWebServices.java:614) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.getFlowRunApps(TimelineReaderWebServices.java:1962) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMet= hodInvokerFactory.java:60) > at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMetho= dDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchPr= ovider.java:185) > at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDis= patcher.dispatch(ResourceJavaMethodDispatcher.java:75) > at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodR= ule.java:302) > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan= dPathRule.java:147) > at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resource= ClassRule.java:108) > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHan= dPathRule.java:147) > at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(Ro= otResourceClassesRule.java:84) > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleReque= st(WebApplicationImpl.java:1542) > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleReque= st(WebApplicationImpl.java:1473) > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques= t(WebApplicationImpl.java:1419) > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReques= t(WebApplicationImpl.java:1409) > at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent= .java:409) > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC= ontainer.java:558) > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletC= ontainer.java:733) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1772) > at org.apache.hadoop.yarn.server.timelineservice.reader.security.Timeline= ReaderWhitelistAuthorizationFilter.doFilter(TimelineReaderWhitelistAuthoriz= ationFilter.java:85) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.= doFilter(AuthenticationFilter.java:644) > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.= doFilter(AuthenticationFilter.java:592) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.security.http.CrossOriginFilter.doFilter(CrossOrigin= Filter.java:98) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpSer= ver2.java:1601) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45) > at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH= andler.java:1759) > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:= 582) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja= va:143) > at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java= :548) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandle= r.java:226) > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandle= r.java:1180) > at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:5= 12) > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler= .java:185) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler= .java:1112) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja= va:141) > at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColle= ction.java:119) > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.= java:134) > at org.eclipse.jetty.server.Server.handle(Server.java:534) > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) > at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java= :251) > at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Abstrac= tConnection.java:283) > at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) > at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint= .java:93) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executePr= oduceConsume(ExecuteProduceConsume.java:303) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceCo= nsume(ExecuteProduceConsume.java:148) > at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Execu= teProduceConsume.java:136) > at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool= .java:671) > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.= java:589) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.NullPointerException > at org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFi= lterUtils.createHBaseFilterList(TimelineFilterUtils.java:276) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.Applicati= onEntityReader.constructFilterListBasedOnFilters(ApplicationEntityReader.ja= va:126) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineE= ntityReader.createFilterList(TimelineEntityReader.java:157) > at org.apache.hadoop.yarn.server.timelineservice.storage.reader.TimelineE= ntityReader.readEntities(TimelineEntityReader.java:277) > at org.apache.hadoop.yarn.server.timelineservice.storage.HBaseTimelineRea= derImpl.getEntities(HBaseTimelineReaderImpl.java:87) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderMan= ager.getEntities(TimelineReaderManager.java:143) > at org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderWeb= Services.getEntities(TimelineReaderWebServices.java:605) > ... 57 more{noformat} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org