Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B7581193A for ; Fri, 12 Sep 2014 20:55:34 +0000 (UTC) Received: (qmail 14499 invoked by uid 500); 12 Sep 2014 20:55:34 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 14453 invoked by uid 500); 12 Sep 2014 20:55:34 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 14441 invoked by uid 99); 12 Sep 2014 20:55:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 20:55:34 +0000 Date: Fri, 12 Sep 2014 20:55:33 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-2549) TestContainerLaunch fails due to classpath problem with hamcrest classes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Nauroth updated YARN-2549: -------------------------------- Attachment: YARN-2549.1.patch Here is a simple pom.xml fix to guarantee that junit (and its hamcrest-core dependency) get on the classpath ahead of mockito. > TestContainerLaunch fails due to classpath problem with hamcrest classes. > ------------------------------------------------------------------------- > > Key: YARN-2549 > URL: https://issues.apache.org/jira/browse/YARN-2549 > Project: Hadoop YARN > Issue Type: Test > Components: nodemanager, test > Reporter: Chris Nauroth > Assignee: Chris Nauroth > Priority: Minor > Attachments: YARN-2549.1.patch > > > The mockito jar bundles its own copy of the hamcrest classes, and it's ahead of our hamcrest dependency jar on the test classpath for hadoop-yarn-server-nodemanager. Unfortunately, the version bundled in mockito doesn't match the version we need, so it's missing the {{CoreMatchers#containsString}} method. This causes the tests to fail with {{NoSuchMethodError}} on Windows. -- This message was sent by Atlassian JIRA (v6.3.4#6332)