forked from ekoontz/hadoop-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAPREDUCE-3868. Make Raid Compile. (Weiyan Wang via schen)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1351548 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Chun-Yang Chen
committed
Jun 19, 2012
1 parent
41f50bc
commit 81e449a
Showing
65 changed files
with
845 additions
and
203 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
hadoop-assemblies/src/main/resources/assemblies/hadoop-raid-dist.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<assembly> | ||
<id>hadoop-raid-dist</id> | ||
<formats> | ||
<format>dir</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<fileSets> | ||
<!-- Configuration files --> | ||
<fileSet> | ||
<directory>${basedir}/src/main/conf</directory> | ||
<outputDirectory>/etc/hadoop</outputDirectory> | ||
<includes> | ||
<include>*</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${basedir}/src/main/sbin</directory> | ||
<outputDirectory>/sbin</outputDirectory> | ||
<includes> | ||
<include>*</include> | ||
</includes> | ||
<fileMode>0755</fileMode> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${basedir}/src/main/libexec</directory> | ||
<outputDirectory>/libexec</outputDirectory> | ||
<includes> | ||
<include>*</include> | ||
</includes> | ||
<fileMode>0755</fileMode> | ||
</fileSet> | ||
<!-- Documentation --> | ||
<fileSet> | ||
<directory>${project.build.directory}/site</directory> | ||
<outputDirectory>/share/doc/hadoop/raid</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>/share/hadoop/${hadoop.component}/lib</outputDirectory> | ||
<unpack>false</unpack> | ||
<scope>runtime</scope> | ||
<useProjectArtifact>true</useProjectArtifact> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,202 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-project-dist</artifactId> | ||
<version>3.0.0-SNAPSHOT</version> | ||
<relativePath>../../hadoop-project-dist</relativePath> | ||
</parent> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-hdfs-raid</artifactId> | ||
<version>3.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>Apache Hadoop HDFS Raid</name> | ||
<description>Apache Hadoop HDFS Raid</description> | ||
|
||
|
||
<properties> | ||
<hadoop.component>raid</hadoop.component> | ||
<is.hadoop.component>false</is.hadoop.component> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-annotations</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-minicluster</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-client</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-archives</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
|
||
<plugins> | ||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>create-mrapp-generated-classpath</id> | ||
<phase>generate-test-resources</phase> | ||
<goals> | ||
<goal>build-classpath</goal> | ||
</goals> | ||
<configuration> | ||
<!-- | ||
This is needed to run the unit tests. It generates the required classpath | ||
that is required in the env of the launch container in the mini mr/yarn cluster. | ||
--> | ||
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.rat</groupId> | ||
<artifactId>apache-rat-plugin</artifactId> | ||
<configuration> | ||
<excludes> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>findbugs-maven-plugin</artifactId> | ||
<configuration> | ||
<excludeFilterFile>${basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>docs</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>docs</id> | ||
<phase>prepare-package</phase> | ||
<goals> | ||
<goal>site</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
|
||
<profile> | ||
<id>dist</id> | ||
<activation> | ||
<activeByDefault>false</activeByDefault> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-assemblies</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<executions> | ||
<execution> | ||
<id>dist</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<configuration> | ||
<finalName>${project.artifactId}-${project.version}</finalName> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
<attach>false</attach> | ||
<descriptorRefs> | ||
<descriptorRef>hadoop-raid-dist</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>tar</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target if="tar"> | ||
<!-- Using Unix script to preserve symlinks --> | ||
<echo file="${project.build.directory}/dist-maketar.sh"> | ||
|
||
which cygpath 2> /dev/null | ||
if [ $? = 1 ]; then | ||
BUILD_DIR="${project.build.directory}" | ||
else | ||
BUILD_DIR=`cygpath --unix '${project.build.directory}'` | ||
fi | ||
cd $BUILD_DIR | ||
tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version} | ||
</echo> | ||
<exec executable="sh" dir="${project.build.directory}" failonerror="true"> | ||
<arg line="./dist-maketar.sh"/> | ||
</exec> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.