diff --git a/.gitignore b/.gitignore index 921fe32be5f..e5a919d7e7a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ .idea .svn .classpath +.project +.settings target diff --git a/hadoop-common/BUILDING.txt b/BUILDING.txt similarity index 94% rename from hadoop-common/BUILDING.txt rename to BUILDING.txt index 2f122ddf76b..c2ac00255f1 100644 --- a/hadoop-common/BUILDING.txt +++ b/BUILDING.txt @@ -1,3 +1,6 @@ + +Build instructions for Hadoop Common/HDFS using Maven + ---------------------------------------------------------------------------------- Requirements: @@ -16,7 +19,8 @@ Maven modules: - hadoop-project (Parent POM for all Hadoop Maven modules. ) (All plugins & dependencies versions are defined here.) - hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs) - - hadoop-common (Hadoop common) + - hadoop-common (Hadoop Common) + - hadoop-hdfs (Hadoop HDFS) ---------------------------------------------------------------------------------- Where to run Maven from? @@ -57,5 +61,4 @@ Maven build goals: * -Dtest.exclude= * -Dtest.exclude.pattern=**/.java,**/.java - ---------------------------------------------------------------------------------- diff --git a/dev-support/smart-apply-patch.sh b/dev-support/smart-apply-patch.sh index c5386b4a2bb..166052b395a 100755 --- a/dev-support/smart-apply-patch.sh +++ b/dev-support/smart-apply-patch.sh @@ -59,15 +59,15 @@ PREFIX_DIRS=$(cut -d '/' -f 1 $TMP | sort | uniq) if [[ -d hadoop-common ]]; then echo Looks like this is being run at project root -# if all of the lines start with hadoop-common/, hdfs/, or mapreduce/, this is +# if all of the lines start with hadoop-common/, hadoop-hdfs/, or mapreduce/, this is # relative to the hadoop root instead of the subproject root, so we need # to chop off another layer -elif [[ "$PREFIX_DIRS" =~ ^(hdfs|hadoop-common|mapreduce)$ ]]; then +elif [[ "$PREFIX_DIRS" =~ ^(hadoop-hdfs|hadoop-common|mapreduce)$ ]]; then echo Looks like this is relative to project root. Increasing PLEVEL PLEVEL=$[$PLEVEL + 1] -elif ! echo "$PREFIX_DIRS" | grep -vxq 'hadoop-common\|hdfs\|mapreduce' ; then +elif ! echo "$PREFIX_DIRS" | grep -vxq 'hadoop-common\|hadoop-hdfs\|mapreduce' ; then echo Looks like this is a cross-subproject patch. Try applying from the project root exit 1 fi diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml index 4e1f46378a8..13babf4a737 100644 --- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml +++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml @@ -24,9 +24,9 @@ ${basedir}/src/main/bin /bin - - hadoop - + + *.sh + 0755 @@ -37,7 +37,7 @@ ${basedir}/src/main/bin /libexec - hadoop-config.sh + *-config.sh 0755 @@ -68,7 +68,7 @@ - ${basedir}/src/main/webapps + ${project.build.directory}/webapps /share/hadoop/${hadoop.component}/webapps @@ -101,7 +101,7 @@ /share/hadoop/${hadoop.component}/lib false - compile + runtime false org.apache.ant:*:jar diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml index 32984f7778b..d68efa00447 100644 --- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml +++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml @@ -40,7 +40,7 @@ ${basedir}/src/main/bin /libexec - hadoop-config.sh + *-config.sh 0755 @@ -51,6 +51,16 @@ ${basedir}/src/main/webapps /webapps + + proto-*-web.xml + + + + ${project.build.directory}/webapps + /webapps + + proto-*-web.xml + ${project.build.directory}/site @@ -73,11 +83,11 @@ /lib false - compile + runtime false org.apache.ant:*:jar - org.apache.hadoop:hadoop-*:jar + org.apache.hadoop:hadoop-*:*:*:* jdiff:jdiff:jar diff --git a/hadoop-common/CHANGES.txt b/hadoop-common/CHANGES.txt index f8b24db420f..147d4d6f8b8 100644 --- a/hadoop-common/CHANGES.txt +++ b/hadoop-common/CHANGES.txt @@ -324,6 +324,13 @@ Trunk (unreleased changes) HADOOP-7531. Add servlet util methods for handling paths in requests. (eli) + HADOOP-7493. Add ShortWritable. (Uma Maheswara Rao G via szetszwo) + + HADOOP-7555. Add a eclipse-generated files to .gitignore. (atm) + + HADOOP-7264. Bump avro version to at least 1.4.1. (Alejandro Abdelnur via + tomwhite) + OPTIMIZATIONS HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole @@ -498,6 +505,9 @@ Trunk (unreleased changes) HADOOP-7545. Common -tests JAR should not include properties and configs. (todd) + HADOOP-7536. Correct the dependency version regressions introduced in + HADOOP-6671. (Alejandro Abdelnur via tomwhite) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-common/pom.xml b/hadoop-common/pom.xml index eb10c0d50c2..7d43a4f660f 100644 --- a/hadoop-common/pom.xml +++ b/hadoop-common/pom.xml @@ -16,9 +16,9 @@ 4.0.0 org.apache.hadoop - hadoop-project + hadoop-project-distro 0.23.0-SNAPSHOT - ../hadoop-project + ../hadoop-project-distro org.apache.hadoop hadoop-common @@ -28,18 +28,12 @@ jar - ${project.build.directory}/test/data - ${project.build.directory}/log - ${project.build.directory}/test-classes/webapps - ${project.build.directory}/test-classes - ${project.build.directory}/test-classes - - ${os.name}-${os.arch}-${sun.arch.data.model} /usr/local ${snappy.prefix}/lib false common + true @@ -219,10 +213,15 @@ test - org.apache.hadoop + org.apache.avro avro compile + + org.apache.avro + avro-ipc + compile + net.sf.kosmosfs kfs @@ -243,83 +242,20 @@ - org.apache.maven.plugins - maven-surefire-plugin - - always - 600 - -Xmx1024m - - ${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib - - - - - ${test.build.data} - ${test.build.webapps} - ${test.cache.data} - ${hadoop.log.dir} - ${test.build.classes} - - true - ${basedir}/src/test/resources/krb5.conf - - - **/Test*.java - - - **/${test.exclude}.java - ${test.exclude.pattern} - **/Test*$*.java - - - - - org.apache.maven.plugins - maven-jar-plugin + org.apache.avro + avro-maven-plugin - prepare-jar - prepare-package + generate-avro-test-sources + generate-test-sources - jar - - - - prepare-test-jar - prepare-package - - test-jar - - - - **/*.class - - - - - - - org.apache.maven.plugins - maven-source-plugin - - - prepare-package - - jar - test-jar + schema + protocol - true - - - - org.codehaus.mojo - findbugs-maven-plugin - - ${basedir}/dev-support/findbugsExcludeFile.xml + ${project.build.directory}/generated-test-sources/java @@ -359,24 +295,6 @@ - - - - - - - - - - - - - - - - - - @@ -433,17 +351,6 @@ - - org.apache.maven.plugins - maven-checkstyle-plugin - - file://${basedir}/dev-support/checkstyle.xml - false - xml - html - ${project.build.directory}/test/checkstyle-errors.xml - - org.apache.rat apache-rat-plugin @@ -463,43 +370,6 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - - true - true - false - ${maven.compile.source} - ${maven.compile.encoding} - ${project.build.directory}/site - api - - - ${project.name} API - org.apache.hadoop* - - - org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet - - - org.apache.hadoop - hadoop-annotations - ${project.version} - - - true - - - true - - - - org.apache.hadoop:hadoop-annotations - - - - @@ -636,427 +506,5 @@ - - - docs - - false - - - 0.20.2 - -unstable - - 512m - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - - javadoc - - prepare-package - - - - - org.codehaus.mojo - findbugs-maven-plugin - - - - findbugs - - prepare-package - - - - ${basedir}/dev-support/findbugsExcludeFile.xml - - - - org.apache.maven.plugins - maven-dependency-plugin - - - site - prepare-package - - copy - - - - - jdiff - jdiff - ${jdiff.version} - false - ${project.build.directory} - jdiff.jar - - - org.apache.hadoop - hadoop-annotations - ${hadoop.annotations.version} - false - ${project.build.directory} - hadoop-annotations.jar - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - site - prepare-package - - run - - - - - - - - - - - - - - - - - -