Permalink
Browse files

Support Hadoop 0.20.x, 0.23.0-SNAPSHOT

  • Loading branch information...
1 parent 86a26e8 commit 9119ade0f3965bd1a2c49f9fd47268a858d6fd57 @tomwhite committed Aug 22, 2011
Showing with 350 additions and 338 deletions.
  1. +2 −6 avro/pom.xml
  2. +131 −0 book/pom.xml
  3. +2 −10 ch02/pom.xml
  4. +2 −10 ch03/pom.xml
  5. +2 −10 ch04/pom.xml
  6. +2 −10 ch05/pom.xml
  7. +2 −15 ch07/pom.xml
  8. +2 −10 ch08/pom.xml
  9. +3 −6 ch11/pom.xml
  10. +3 −6 ch12/pom.xml
  11. +1 −1 ch13/pom.xml
  12. +1 −1 ch14/pom.xml
  13. +1 −1 ch15/pom.xml
  14. +3 −8 ch16/pom.xml
  15. +2 −10 common/pom.xml
  16. +1 −1 distribution/pom.xml
  17. +2 −6 experimental/pom.xml
  18. +186 −0 hadoop-meta/pom.xml
  19. +2 −227 pom.xml
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -3,20 +3,17 @@
<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>
<packaging>jar</packaging>
<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
@@ -3,20 +3,17 @@
<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>
<packaging>jar</packaging>
<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
@@ -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
@@ -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
@@ -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>
Oops, something went wrong.

0 comments on commit 9119ade

Please sign in to comment.