[ https://issues.apache.org/jira/browse/YARN-5271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15666684#comment-15666684 ]
Weiwei Yang edited comment on YARN-5271 at 11/15/16 10:03 AM: -------------------------------------------------------------- Hi [~jojochuang] Thanks for looking at this one. You are absolutely right I should use spyClient instead of the client, I have fixed that in v2 patch (one for trunk and one for branch-2.8). I tested if I remove the code fix, the UT will fail like following, {code} Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.558 sec <<< FAILURE! - in org.apache.hadoop.yarn.client.api.impl.TestYarnClient testTimelineClientInitFailure(org.apache.hadoop.yarn.client.api.impl.TestYarnClient) Time elapsed: 0.465 sec <<< ERROR! java.lang.NoClassDefFoundError: Mock a failure when init timeline instance at org.apache.hadoop.yarn.client.api.impl.TestYarnClient.testTimelineClientInitFailure(TestYarnClient.java:170) {code} Also I have revised the warning message according to your comment. Thank you! was (Author: cheersyang): Hi [~jojochuang] Thanks for looking at this one. You are absolutely right I should use spyClient instead of the client, I have fixed that in v2 patch. I tested if I remove the code fix, the UT will fail like following, {code} Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.558 sec <<< FAILURE! - in org.apache.hadoop.yarn.client.api.impl.TestYarnClient testTimelineClientInitFailure(org.apache.hadoop.yarn.client.api.impl.TestYarnClient) Time elapsed: 0.465 sec <<< ERROR! java.lang.NoClassDefFoundError: Mock a failure when init timeline instance at org.apache.hadoop.yarn.client.api.impl.TestYarnClient.testTimelineClientInitFailure(TestYarnClient.java:170) {code} Also I have revised the warning message according to your comment. Thank you! > ATS client doesn't work with Jersey 2 on the classpath > ------------------------------------------------------ > > Key: YARN-5271 > URL: https://issues.apache.org/jira/browse/YARN-5271 > Project: Hadoop YARN > Issue Type: Bug > Components: client, timelineserver > Affects Versions: 2.7.2 > Reporter: Steve Loughran > Assignee: Weiwei Yang > Labels: oct16-medium > Attachments: YARN-5271-branch-2.8.01.patch, YARN-5271.01.patch, > YARN-5271.02.patch, YARN-5271.branch-2.01.patch > > > see SPARK-15343 : once Jersey 2 is on the CP, you can't instantiate a > timeline client, *even if the server is an ATS1.5 server and publishing is > via the FS* -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org