You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2016/09/13 14:16:20 UTC

[jira] [Commented] (YARN-5640) Issue while accessing resource manager webapp rest service

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

Jason Lowe commented on YARN-5640:
----------------------------------

JIRA is used for tracking bugs and features against the Hadoop code base rather than general user support.  Please use the [Hadoop user mailing list|http://hadoop.apache.org/mailing_lists.html#User] for general support questions.

NoSuchMethodErrors are usually an indication of a jar conflict gone awry.  In this particular case the Hadoop class is expecting the URLEncodedUtils class to have a particular parse method that isn't there.  I suspect it is picking up a different version of that class than it was compiled against, and that other version is missing the expected parse method.  Please check the classpath to see where URLEncodedUtils and DelegationTokenAuthenticationHandler are coming from.

bq. Also I couldn't find the DelegationTokenAuthenticationHandler in the source code.

That class isn't in Hadoop 2.5.1 which is even more evidence there is some kind of accidental jar conflict here.  It was first added in 2.6.0 via HADOOP-10771.  If you are supposed to be running Hadoop 2.5.1 then you'll want to find out what jar is providing that DelegationTokenAuthenticationHandler class (and the class that requested it).


> Issue while accessing resource manager webapp rest service
> ----------------------------------------------------------
>
>                 Key: YARN-5640
>                 URL: https://issues.apache.org/jira/browse/YARN-5640
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.5.1
>            Reporter: Loknath Priyatham Teja Singamsetty 
>
> I am running E2E test in phoenix which starts the minimapreduce cluster using MapreduceTestingShim.java from HBaseTestingUtiltiy of hbase codebase and makes rest call to get all the submitted yarn map reduce jobs (http://localhost:63996/ws/v1/cluster/apps?states=NEW,ACCEPTED,SUBMITTED,RUNNING) which is failing with the following stack trace. Tried debugging but couldn't reach to bottom of the issue. 
> Also I couldn't find the DelegationTokenAuthenticationHandler in the source code. Any clue where to find the same?
> Setup:
> Phoenix - 4.8.0
> HBase - 1.20
> Hadoop - 2.5.1
> Stack Trace:
> HTTP ERROR 500
> Problem accessing /ws/v1/cluster/apps. Reason:
>     org.apache.http.client.utils.URLEncodedUtils.parse(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;
> Caused by:
> java.lang.NoSuchMethodError: org.apache.http.client.utils.URLEncodedUtils.parse(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;
> 	at org.apache.hadoop.security.token.delegation.web.ServletUtils.getParameter(ServletUtils.java:48)
> 	at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationHandler.managementOperation(DelegationTokenAuthenticationHandler.java:171)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:514)
> 	at org.apache.hadoop.yarn.server.security.http.RMAuthenticationFilter.doFilter(RMAuthenticationFilter.java:82)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1243)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org