hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Kartha (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-3550) Improve YARN RM REST API error messages
Date Mon, 27 Apr 2015 19:56:39 GMT
Rajesh Kartha created YARN-3550:
-----------------------------------

             Summary: 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


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)

Mime
View raw message