[ https://issues.apache.org/jira/browse/HADOOP-8723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Lowe updated HADOOP-8723: ------------------------------- Attachment: HADOOP-8723.patch Patch to modify the dist tarball so all the tests and tests-sources jars are in a test/ subdirectory in their respective project-specific areas. Manually tested by bringing up a single-node cluster and running teragen, terasort, wordcount, and sleep jobs. Note that after this change the sleep jobs need the classpath modified, e.g.: via {{HADOOP_CLASSPATH}}, to add in {{$HADOOP_PREFIX/share/hadoop/common/test/*.jar}} as it relies on test classes in common. We may need to mark this as an incompatible change for those who were relying on the test classes in the path for their own tests. I also noticed that in my single-node cluster setup I was inadvertently picking up {{log4j.properties}} from one of the tests jars before this change, and I needed to provide a properties file after this change to restore logging. > 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 > 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