Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2549

TestContainerLaunch fails due to classpath problem with hamcrest classes.

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: nodemanager, test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cnauroth Chris Nauroth
              Reporter:
              cnauroth Chris Nauroth
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: