Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support Hadoop 0.20.x, 0.23.0-SNAPSHOT

  • Loading branch information...
commit 9119ade0f3965bd1a2c49f9fd47268a858d6fd57 1 parent 86a26e8
@tomwhite authored
View
8 avro/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>avro</artifactId>
@@ -23,10 +23,6 @@
<artifactId>avro-mapred</artifactId>
</dependency-->
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
131 book/pom.xml
@@ -0,0 +1,131 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.hadoopbook</groupId>
+ <artifactId>book</artifactId>
+ <packaging>pom</packaging>
+ <version>3.0</version>
+ <name>Hadoop: The Definitive Guide, Project</name>
+ <url>http://hadoopbook.com</url>
+
+ <dependencyManagement>
+ <!-- Note that Hadoop dependencies are defined in hadoop-meta -->
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>1.4.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase</artifactId>
+ <version>0.90.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-common</artifactId>
+ <version>0.7.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hive</groupId>
+ <artifactId>hive-exec</artifactId>
+ <version>0.7.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.pig</groupId>
+ <artifactId>pig</artifactId>
+ <version>0.8.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.zookeeper</groupId>
+ <artifactId>zookeeper</artifactId>
+ <version>3.3.3</version>
+ </dependency>
+ <dependency>
+ <groupId>com.cloudera.sqoop</groupId>
+ <artifactId>sqoop</artifactId>
+ <version>1.2.0-cdh3u0</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.15</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>javax.jms</groupId>
+ <artifactId>jms</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jdmk</groupId>
+ <artifactId>jmxtools</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jmx</groupId>
+ <artifactId>jmxri</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.5.11</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.5.11</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.5</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <!-- For Hive snapshots until they get into Maven Central -->
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://repository.apache.org/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <!-- For Sqoop and CDH -->
+ <id>cloudera</id>
+ <url>https://repository.cloudera.com/content/repositories/releases/</url>
+ </repository>
+ </repositories>
+
+</project>
View
12 ch02/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch02</artifactId>
@@ -14,14 +14,6 @@
<name>Chapter 2: MapReduce</name>
<dependencies>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
12 ch03/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch03</artifactId>
@@ -14,14 +14,6 @@
<name>Chapter 3: The Hadoop Distributed Filesystem</name>
<dependencies>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
12 ch04/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch04</artifactId>
@@ -19,14 +19,6 @@
<version>3.0</version>
</dependency>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
12 ch05/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch05</artifactId>
@@ -14,14 +14,6 @@
<name>Chapter 5: Developing a MapReduce Application</name>
<dependencies>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
17 ch07/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch07</artifactId>
@@ -24,19 +24,6 @@
<version>3.0</version>
</dependency>
<dependency>
- <groupId>com.hadoopbook</groupId>
- <artifactId>ch08</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
12 ch08/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch08</artifactId>
@@ -29,14 +29,6 @@
<version>3.0</version>
</dependency>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
9 ch11/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch11</artifactId>
@@ -13,10 +13,7 @@
<version>3.0</version>
<name>Chapter 11: Pig</name>
<dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
+ <!-- TODO: make sure Hadoop version is compatible -->
<dependency>
<groupId>org.apache.pig</groupId>
<artifactId>pig</artifactId>
View
9 ch12/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch12</artifactId>
@@ -13,10 +13,7 @@
<version>3.0</version>
<name>Chapter 12: Hive</name>
<dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
+ <!-- TODO: make sure Hadoop version is compatible -->
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-common</artifactId>
View
2  ch13/pom.xml
@@ -5,7 +5,7 @@
<groupId>com.hadoopbook</groupId>
<artifactId>book</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../book/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch13</artifactId>
View
2  ch14/pom.xml
@@ -5,7 +5,7 @@
<groupId>com.hadoopbook</groupId>
<artifactId>book</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../book/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch14</artifactId>
View
2  ch15/pom.xml
@@ -5,7 +5,7 @@
<groupId>com.hadoopbook</groupId>
<artifactId>book</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../book/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch15</artifactId>
View
11 ch16/pom.xml
@@ -3,19 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch16</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter 16: Case Studies</name>
- <dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- </dependencies>
+
</project>
View
12 common/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>common</artifactId>
@@ -14,14 +14,6 @@
<name>Common Code</name>
<dependencies>
<dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
View
2  distribution/pom.xml
@@ -5,7 +5,7 @@
<groupId>com.hadoopbook</groupId>
<artifactId>book</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../book/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>distribution</artifactId>
View
8 experimental/pom.xml
@@ -3,9 +3,9 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>hadoop-meta</artifactId>
<version>3.0</version>
- <relativePath>../pom.xml</relativePath>
+ <relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>experimental</artifactId>
@@ -23,9 +23,5 @@
<artifactId>ch04</artifactId>
<version>3.0</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- </dependency>
</dependencies>
</project>
View
186 hadoop-meta/pom.xml
@@ -0,0 +1,186 @@
+<!--
+A module which allows the Hadoop dependencies to be specified by a Maven profile.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.hadoopbook</groupId>
+ <artifactId>book</artifactId>
+ <version>3.0</version>
+ <relativePath>../book/pom.xml</relativePath>
+ </parent>
+ <groupId>com.hadoopbook</groupId>
+ <artifactId>hadoop-meta</artifactId>
+ <packaging>pom</packaging>
+ <version>3.0</version>
+ <name>Hadoop dependencies</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>apache-20</id>
+ <activation>
+ <!-- Activated by default - see http://www.andrewspencer.net/2011/maven-profile-best-practices/ -->
+ <property>
+ <name>!profile.activated</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-core</artifactId>
+ <version>0.20.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-test</artifactId>
+ <version>0.20.2</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/NewJoinRecordWithStationName.java</exclude>
+ <exclude>**/NewLookupRecordByTemperature.java</exclude>
+ <exclude>**/NewLookupRecordsByTemperature.java</exclude>
+ <exclude>**/NewMissingTemperatureFields.java</exclude>
+ <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
+ <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
+ <exclude>**/NewPartitionByStationYearUsingMultipleOutputs.java</exclude>
+ <exclude>**/NewMaxTemperatureWithMultipleInputFormats.java</exclude>
+ <exclude>**/NewPartitionByStationUsingMultipleOutputs.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>apache-203</id>
+ <properties>
+ <property>profile.activated</property>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-core</artifactId>
+ <version>0.20.203.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-test</artifactId>
+ <version>0.20.203.0</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/NewJoinRecordWithStationName.java</exclude>
+ <exclude>**/NewLookupRecordByTemperature.java</exclude>
+ <exclude>**/NewLookupRecordsByTemperature.java</exclude>
+ <exclude>**/NewMissingTemperatureFields.java</exclude>
+ <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
+ <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
+ <exclude>**/NewPartitionByStationYearUsingMultipleOutputs.java</exclude>
+ <exclude>**/NewMaxTemperatureWithMultipleInputFormats.java</exclude>
+ <exclude>**/NewPartitionByStationUsingMultipleOutputs.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>cdh3</id>
+ <properties>
+ <property>profile.activated</property>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-core</artifactId>
+ <version>0.20.2-cdh3u1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-test</artifactId>
+ <version>0.20.2-cdh3u1</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/NewLookupRecordByTemperature.java</exclude>
+ <exclude>**/NewLookupRecordsByTemperature.java</exclude>
+ <exclude>**/NewMissingTemperatureFields.java</exclude>
+ <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
+ <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>apache-23</id>
+ <properties>
+ <property>profile.activated</property>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-common</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-hdfs</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-mapred</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-common-test</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-hdfs-test</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-mapred-test</artifactId>
+ <version>0.23.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
+</project>
View
229 pom.xml
@@ -2,13 +2,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hadoopbook</groupId>
- <artifactId>book</artifactId>
+ <artifactId>root</artifactId>
<packaging>pom</packaging>
<version>3.0</version>
<name>Hadoop: The Definitive Guide, Example Code</name>
<url>http://hadoopbook.com</url>
<modules>
+ <module>book</module>
<module>common</module>
<module>ch02</module>
<module>ch03</module>
@@ -26,230 +27,4 @@
<module>experimental</module>
<module>distribution</module>
</modules>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.avro</groupId>
- <artifactId>avro</artifactId>
- <version>1.4.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-test</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hbase</groupId>
- <artifactId>hbase</artifactId>
- <version>0.90.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-common</artifactId>
- <version>0.7.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hive</groupId>
- <artifactId>hive-exec</artifactId>
- <version>0.7.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.pig</groupId>
- <artifactId>pig</artifactId>
- <version>0.8.3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.zookeeper</groupId>
- <artifactId>zookeeper</artifactId>
- <version>3.3.3</version>
- </dependency>
- <dependency>
- <groupId>com.cloudera.sqoop</groupId>
- <artifactId>sqoop</artifactId>
- <version>1.2.0-cdh3u0</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.15</version>
- <exclusions>
- <exclusion>
- <groupId>javax.mail</groupId>
- <artifactId>mail</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javax.jms</groupId>
- <artifactId>jms</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.sun.jdmk</groupId>
- <artifactId>jmxtools</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.sun.jmx</groupId>
- <artifactId>jmxri</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.5.11</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.5.11</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.8.1</version>
- </dependency>
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- <version>1.1</version>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.8.5</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- </plugin>
- </plugins>
- </build>
-
- <repositories>
- <repository>
- <!-- For Hive snapshots until they get into Maven Central -->
- <id>apache.snapshots</id>
- <name>Apache Snapshot Repository</name>
- <url>http://repository.apache.org/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- <repository>
- <!-- For Sqoop -->
- <id>cloudera</id>
- <url>https://repository.cloudera.com/content/repositories/releases/</url>
- </repository>
- </repositories>
-
- <profiles>
- <profile>
- <id>apache-20</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <hadoop.version>0.20.2</hadoop.version>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/NewJoinRecordWithStationName.java</exclude>
- <exclude>**/NewLookupRecordByTemperature.java</exclude>
- <exclude>**/NewLookupRecordsByTemperature.java</exclude>
- <exclude>**/NewMissingTemperatureFields.java</exclude>
- <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
- <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
- <exclude>**/NewPartitionByStationYearUsingMultipleOutputs.java</exclude>
- <exclude>**/NewMaxTemperatureWithMultipleInputFormats.java</exclude>
- <exclude>**/NewPartitionByStationUsingMultipleOutputs.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>apache-203</id>
- <properties>
- <hadoop.version>0.20.203.0</hadoop.version>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/NewJoinRecordWithStationName.java</exclude>
- <exclude>**/NewLookupRecordByTemperature.java</exclude>
- <exclude>**/NewLookupRecordsByTemperature.java</exclude>
- <exclude>**/NewMissingTemperatureFields.java</exclude>
- <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
- <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
- <exclude>**/NewPartitionByStationYearUsingMultipleOutputs.java</exclude>
- <exclude>**/NewMaxTemperatureWithMultipleInputFormats.java</exclude>
- <exclude>**/NewPartitionByStationUsingMultipleOutputs.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>apache-21</id>
- <properties>
- <hadoop.version>0.21.0</hadoop.version>
- </properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-core</artifactId>
- <version>${hadoop.version}</version>
- <scope>system</scope>
- <systemPath>${basedir}/../lib/hadoop-common-${hadoop.version}.jar</systemPath>
- </dependency>
- </dependencies>
- </dependencyManagement>
- </profile>
- <profile>
- <id>cdh3</id>
- <properties>
- <hadoop.version>0.20.2-cdh3u1</hadoop.version>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/NewLookupRecordByTemperature.java</exclude>
- <exclude>**/NewLookupRecordsByTemperature.java</exclude>
- <exclude>**/NewMissingTemperatureFields.java</exclude>
- <exclude>**/NewSortByTemperatureToMapFile.java</exclude>
- <exclude>**/NewSortByTemperatureUsingTotalOrderPartitioner.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.