[
https://issues.apache.org/jira/browse/HADOOP-8723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440511#comment-13440511
]
Jason Lowe commented on HADOOP-8723:
------------------------------------
Part of the issue is that the sleep job is actually part of
mapreduce-client-jobclient-tests and not mapreduce-examples. In general test
classes will need to be added to the classpath when running tests (not
examples), assuming it's OK for tests of one component to rely on test code
from another component.
But I agree that the sleep job is used heavily enough that we should at least
reduce its dependencies so it can run without classpath changes. Arguably it
should be promoted into mapreduce-examples.
> Remove tests and tests-sources jars from classpath
> --------------------------------------------------
>
> Key: HADOOP-8723
> URL: https://issues.apache.org/jira/browse/HADOOP-8723
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 2.0.0-alpha
> Reporter: Jason Lowe
> Assignee: Jason Lowe
> Attachments: HADOOP-8723.patch
>
>
> Currently {{hadoop-config.sh}} is including any tests and tests-sources jars
> in the default classpath, as those jars are shipped in the dist tarball next
> to the main jars and the script is globbing everything in that directory.
> The tests and tests-sources jars aren't required to run Hadoop, but they can
> cause breakage when inadvertently picked up. See HDFS-3831 as an example.
> Ideally we should not be adding these jars to the classpath.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira