[ 
https://issues.apache.org/jira/browse/YARN-3550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran resolved YARN-3550.
----------------------------------
       Resolution: Won't Fix
    Fix Version/s: 2.7.1

Closing as CANTFIX; this is happening in the servlet layer before it gets as 
far as our REST APIs. All of those we catch exceptions, convert to HTTP error 
codes, log, etc, etc. Jersey gets in early with its issues (locating the 
destination classes, unmarshalling datatypes &c), and our REST endpoints don't 
even get told of the problems.

Sorry.

> Improve YARN RM REST API error messages
> ---------------------------------------
>
>                 Key: YARN-3550
>                 URL: https://issues.apache.org/jira/browse/YARN-3550
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: webapp
>    Affects Versions: 2.6.0
>            Reporter: Rajesh Kartha
>            Priority: Minor
>             Fix For: 2.7.1
>
>
> The error messages from an invalid REST call to the YARN RM Rest service does 
> not yield in useful messages.
> Here is a simple example of using GET instead of POST to get a new 
> application id:
> $ curl -X GET  http://myhost:8088/ws/v1/cluster/apps/new-application
> <?xml version="1.0" encoding="UTF-8" 
> standalone="yes"?><RemoteException><exception>WebApplicationException</exception><javaClassName>javax.ws.rs.WebApplicationException</javaClassName></RemoteException>
> and the RM log has this:
> 2015-04-27 11:18:27,783 WARN  webapp.GenericExceptionHandler 
> (GenericExceptionHandler.java:toResponse(98)) - INTERNAL_SERVER_ERROR
> javax.ws.rs.WebApplicationException
>         at 
> com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66)
>         at 
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
>         at 
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>         at 
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
>         at 
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
>         at 
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
>         at 
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
>         at 
> com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:886)
>         at 
> com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:834)
>         at 
> org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter.doFilter(RMWebAppFilter.java:84)
> Would be useful to return a useful message



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

Reply via email to