Skip to content

Commit 7ed6a19

Browse files
committed
MAPREDUCE-2483. Remove duplication of jars between Hadoop subprojects
from build artifacts. (Eric Yang via omalley) git-svn-id: https://svn.apache.org/repos/asf/hadoop/mapreduce/trunk@1125017 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6391d69 commit 7ed6a19

File tree

4 files changed

+30
-13
lines changed

4 files changed

+30
-13
lines changed

CHANGES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Trunk (unreleased changes)
2020
MAPREDUCE-1461. Feature to instruct rumen-folder utility to skip jobs worth
2121
of specific duration. (Rajesh Balamohan via amarrk)
2222

23-
MAPREDUCE-2172. Added test-patch.properties required by test-patch.sh (nigel)
23+
MAPREDUCE-2172. Added test-patch.properties required by test-patch.sh
24+
(nigel)
2425

2526
MAPREDUCE-2156. Raid-aware FSCK. (Patrick Kling via dhruba)
2627

@@ -112,6 +113,9 @@ Trunk (unreleased changes)
112113
MAPREDUCE-2449. Allow for command line arguments when performing
113114
"Run on Hadoop" action in Eclipse plugin. (Jeff Zemerick via todd)
114115

116+
MAPREDUCE-2483. Remove duplication of jars between Hadoop subprojects
117+
from build artifacts. (Eric Yang via omalley)
118+
115119
OPTIMIZATIONS
116120

117121
MAPREDUCE-2026. Make JobTracker.getJobCounters() and

build.xml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@
197197
<property name="build.ivy.dir" location="${build.dir}/ivy" />
198198
<property name="build.ivy.lib.dir" location="${build.ivy.dir}/lib" />
199199
<property name="common.ivy.lib.dir" location="${build.ivy.lib.dir}/${ant.project.name}/common"/>
200+
<property name="mapred.ivy.lib.dir" location="${build.ivy.lib.dir}/${ant.project.name}/mapred"/>
200201
<property name="build.ivy.report.dir" location="${build.ivy.dir}/report" />
201202
<property name="build.ivy.maven.dir" location="${build.ivy.dir}/maven" />
202203
<property name="build.ivy.maven.pom" location="${build.ivy.maven.dir}/hadoop-mapred-${version}.pom" />
@@ -255,6 +256,7 @@
255256
<pathelement location="${build.classes}"/>
256257
<pathelement location="${conf.dir}"/>
257258
<path refid="ivy-common.classpath"/>
259+
<path refid="ivy-mapred.classpath"/>
258260
</path>
259261

260262
<path id="test.classpath">
@@ -268,6 +270,7 @@
268270
<pathelement location="${build.classes}"/>
269271
<pathelement location="${test.conf.dir}"/>
270272
<path refid="ivy-common.classpath"/>
273+
<path refid="ivy-mapred.classpath"/>
271274
<pathelement location="${test.mapred.build.classes}" />
272275
<path refid="ivy-test.classpath"/>
273276
</path>
@@ -298,7 +301,7 @@
298301
<!-- ====================================================== -->
299302
<!-- Stuff needed by all targets -->
300303
<!-- ====================================================== -->
301-
<target name="init" depends="ivy-retrieve-common">
304+
<target name="init" depends="ivy-retrieve-common,ivy-retrieve-mapred">
302305
<mkdir dir="${build.dir}"/>
303306
<mkdir dir="${build.classes}"/>
304307
<mkdir dir="${build.tools}"/>
@@ -1160,7 +1163,7 @@
11601163
<mkdir dir="${dist.dir}/docs/jdiff"/>
11611164

11621165
<copy todir="${dist.dir}/lib" includeEmptyDirs="false" flatten="true">
1163-
<fileset dir="${common.ivy.lib.dir}"/>
1166+
<fileset dir="${mapred.ivy.lib.dir}"/>
11641167
</copy>
11651168

11661169
<copy todir="${dist.dir}/lib" includeEmptyDirs="false">
@@ -1283,7 +1286,7 @@
12831286
<mkdir dir="${dist.dir}/bin"/>
12841287

12851288
<copy todir="${dist.dir}/lib" includeEmptyDirs="false" flatten="true">
1286-
<fileset dir="${common.ivy.lib.dir}"/>
1289+
<fileset dir="${mapred.ivy.lib.dir}"/>
12871290
</copy>
12881291

12891292
<copy todir="${dist.dir}/lib" includeEmptyDirs="false">
@@ -1938,7 +1941,7 @@
19381941
</target>
19391942

19401943
<target name="eclipse"
1941-
depends="init,ant-eclipse-download,ivy-retrieve-common,ivy-retrieve-test"
1944+
depends="init,ant-eclipse-download,ivy-retrieve-common,ivy-retrieve-mapred,ivy-retrieve-test"
19421945
description="Create eclipse project files">
19431946
<pathconvert property="eclipse.project">
19441947
<path path="${basedir}"/>
@@ -2012,6 +2015,7 @@
20122015
output="${build.dir.eclipse-contrib-classes}/vertica/test" />
20132016
<output path="${build.dir.eclipse-main-classes}" />
20142017
<library pathref="ivy-common.classpath" exported="true" />
2018+
<library pathref="ivy-mapred.classpath" exported="true" />
20152019
<library pathref="ivy-test.classpath" exported="false" />
20162020
<library path="${conf.dir}" exported="false" />
20172021
</classpath>
@@ -2102,6 +2106,11 @@
21022106
log="${ivyresolvelog}"/>
21032107
</target>
21042108

2109+
<target name="ivy-resolve-mapred" depends="ivy-init">
2110+
<ivy:resolve settingsRef="${ant.project.name}.ivy.settings" conf="mapred"
2111+
log="${ivyresolvelog}"/>
2112+
</target>
2113+
21052114
<target name="ivy-resolve-jdiff" depends="ivy-init">
21062115
<ivy:resolve settingsRef="${ant.project.name}.ivy.settings" conf="jdiff"
21072116
log="${ivyresolvelog}"/>
@@ -2164,6 +2173,14 @@
21642173
<ivy:cachepath pathid="ivy-common.classpath" conf="common"/>
21652174
</target>
21662175

2176+
<target name="ivy-retrieve-mapred" depends="ivy-resolve-mapred"
2177+
description="Retrieve Ivy-managed artifacts for the mapred configurations">
2178+
<ivy:retrieve settingsRef="${ant.project.name}.ivy.settings"
2179+
pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}"
2180+
log="${ivyresolvelog}"/>
2181+
<ivy:cachepath pathid="ivy-mapred.classpath" conf="mapred"/>
2182+
</target>
2183+
21672184
<target name="ivy-retrieve-releaseaudit" depends="ivy-resolve-releaseaudit"
21682185
description="Retrieve Ivy-managed artifacts for the compile configurations">
21692186
<ivy:retrieve settingsRef="${ant.project.name}.ivy.settings"

ivy.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
-->
3737
<!--Private configurations. -->
3838

39-
<conf name="common" visibility="private" extends="compile,runtime" description="common artifacts"/>
39+
<conf name="common" visibility="private" extends="compile" description="common artifacts"/>
40+
<conf name="mapred" visibility="private" extends="compile,runtime" description="Mapred dependent artifacts"/>
4041
<conf name="javadoc" visibility="private" description="artiracts required while performing doc generation" extends="common"/>
41-
<conf name="test" extends="common" visibility="private" description="the classpath needed to run tests"/>
42+
<conf name="test" extends="master" visibility="private" description="the classpath needed to run tests"/>
4243
<conf name="system" extends="test" visibility="private" description="the classpath needed to run system tests"/>
4344

4445
<conf name="test-hdfswithmr" extends="test" visibility="private" description="the classpath needed to run tests"/>
@@ -73,7 +74,7 @@
7374
<dependency org="org.slf4j" name="slf4j-api" rev="${slf4j-api.version}"
7475
conf="common->master"/>
7576
<dependency org="org.slf4j" name="slf4j-log4j12"
76-
rev="${slf4j-log4j12.version}" conf="common->master"/>
77+
rev="${slf4j-log4j12.version}" conf="mapred->master"/>
7778
<dependency org="org.apache.hadoop" name="hadoop-common-test"
7879
rev="${hadoop-common.version}" conf="test->default"/>
7980
<dependency org="org.apache.hadoop" name="hadoop-hdfs-test"

src/contrib/mumak/build.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ to call at top-level: ant deploy-contrib compile-core-test
9696
<copy todir="${dist.dir}/contrib/${name}/conf" includeEmptyDirs="true">
9797
<fileset dir="${root}/conf" />
9898
</copy>
99-
<copy todir="${dist.dir}/lib" includeEmptyDirs="false">
100-
<fileset dir="${common.ivy.lib.dir}">
101-
<include name="*.jar"/>
102-
</fileset>
103-
</copy>
10499
<exec executable="sed">
105100
<arg value="-i"/>
106101
<arg value="-e"/>

0 commit comments

Comments
 (0)