Skip to content

Commit 9119ade

Browse files
committed
Support Hadoop 0.20.x, 0.23.0-SNAPSHOT
1 parent 86a26e8 commit 9119ade

File tree

19 files changed

+350
-338
lines changed

19 files changed

+350
-338
lines changed

avro/pom.xml

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>avro</artifactId>
@@ -22,10 +22,6 @@
2222
<groupId>org.apache.avro</groupId>
2323
<artifactId>avro-mapred</artifactId>
2424
</dependency-->
25-
<dependency>
26-
<groupId>org.apache.hadoop</groupId>
27-
<artifactId>hadoop-core</artifactId>
28-
</dependency>
2925
<dependency>
3026
<groupId>junit</groupId>
3127
<artifactId>junit</artifactId>

book/pom.xml

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.hadoopbook</groupId>
5+
<artifactId>book</artifactId>
6+
<packaging>pom</packaging>
7+
<version>3.0</version>
8+
<name>Hadoop: The Definitive Guide, Project</name>
9+
<url>http://hadoopbook.com</url>
10+
11+
<dependencyManagement>
12+
<!-- Note that Hadoop dependencies are defined in hadoop-meta -->
13+
<dependencies>
14+
<dependency>
15+
<groupId>org.apache.avro</groupId>
16+
<artifactId>avro</artifactId>
17+
<version>1.4.1</version>
18+
</dependency>
19+
<dependency>
20+
<groupId>org.apache.hbase</groupId>
21+
<artifactId>hbase</artifactId>
22+
<version>0.90.3</version>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.apache.hive</groupId>
26+
<artifactId>hive-common</artifactId>
27+
<version>0.7.1-SNAPSHOT</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.apache.hive</groupId>
31+
<artifactId>hive-exec</artifactId>
32+
<version>0.7.1-SNAPSHOT</version>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.apache.pig</groupId>
36+
<artifactId>pig</artifactId>
37+
<version>0.8.3</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.apache.zookeeper</groupId>
41+
<artifactId>zookeeper</artifactId>
42+
<version>3.3.3</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.cloudera.sqoop</groupId>
46+
<artifactId>sqoop</artifactId>
47+
<version>1.2.0-cdh3u0</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>log4j</groupId>
51+
<artifactId>log4j</artifactId>
52+
<version>1.2.15</version>
53+
<exclusions>
54+
<exclusion>
55+
<groupId>javax.mail</groupId>
56+
<artifactId>mail</artifactId>
57+
</exclusion>
58+
<exclusion>
59+
<groupId>javax.jms</groupId>
60+
<artifactId>jms</artifactId>
61+
</exclusion>
62+
<exclusion>
63+
<groupId>com.sun.jdmk</groupId>
64+
<artifactId>jmxtools</artifactId>
65+
</exclusion>
66+
<exclusion>
67+
<groupId>com.sun.jmx</groupId>
68+
<artifactId>jmxri</artifactId>
69+
</exclusion>
70+
</exclusions>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.slf4j</groupId>
74+
<artifactId>slf4j-api</artifactId>
75+
<version>1.5.11</version>
76+
</dependency>
77+
<dependency>
78+
<groupId>org.slf4j</groupId>
79+
<artifactId>slf4j-log4j12</artifactId>
80+
<version>1.5.11</version>
81+
</dependency>
82+
<dependency>
83+
<groupId>junit</groupId>
84+
<artifactId>junit</artifactId>
85+
<version>4.8.1</version>
86+
</dependency>
87+
<dependency>
88+
<groupId>org.hamcrest</groupId>
89+
<artifactId>hamcrest-all</artifactId>
90+
<version>1.1</version>
91+
</dependency>
92+
<dependency>
93+
<groupId>org.mockito</groupId>
94+
<artifactId>mockito-all</artifactId>
95+
<version>1.8.5</version>
96+
</dependency>
97+
</dependencies>
98+
</dependencyManagement>
99+
100+
<build>
101+
<plugins>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-compiler-plugin</artifactId>
105+
<version>2.3.2</version>
106+
<configuration>
107+
<source>1.6</source>
108+
<target>1.6</target>
109+
</configuration>
110+
</plugin>
111+
</plugins>
112+
</build>
113+
114+
<repositories>
115+
<repository>
116+
<!-- For Hive snapshots until they get into Maven Central -->
117+
<id>apache.snapshots</id>
118+
<name>Apache Snapshot Repository</name>
119+
<url>http://repository.apache.org/snapshots</url>
120+
<releases>
121+
<enabled>false</enabled>
122+
</releases>
123+
</repository>
124+
<repository>
125+
<!-- For Sqoop and CDH -->
126+
<id>cloudera</id>
127+
<url>https://repository.cloudera.com/content/repositories/releases/</url>
128+
</repository>
129+
</repositories>
130+
131+
</project>

ch02/pom.xml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch02</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
1414
<name>Chapter 2: MapReduce</name>
1515
<dependencies>
16-
<dependency>
17-
<groupId>org.apache.hadoop</groupId>
18-
<artifactId>hadoop-core</artifactId>
19-
</dependency>
20-
<dependency>
21-
<groupId>org.apache.hadoop</groupId>
22-
<artifactId>hadoop-test</artifactId>
23-
</dependency>
2416
<dependency>
2517
<groupId>junit</groupId>
2618
<artifactId>junit</artifactId>

ch03/pom.xml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch03</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
1414
<name>Chapter 3: The Hadoop Distributed Filesystem</name>
1515
<dependencies>
16-
<dependency>
17-
<groupId>org.apache.hadoop</groupId>
18-
<artifactId>hadoop-core</artifactId>
19-
</dependency>
20-
<dependency>
21-
<groupId>org.apache.hadoop</groupId>
22-
<artifactId>hadoop-test</artifactId>
23-
</dependency>
2416
<dependency>
2517
<groupId>junit</groupId>
2618
<artifactId>junit</artifactId>

ch04/pom.xml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch04</artifactId>
@@ -18,14 +18,6 @@
1818
<artifactId>ch02</artifactId>
1919
<version>3.0</version>
2020
</dependency>
21-
<dependency>
22-
<groupId>org.apache.hadoop</groupId>
23-
<artifactId>hadoop-core</artifactId>
24-
</dependency>
25-
<dependency>
26-
<groupId>org.apache.hadoop</groupId>
27-
<artifactId>hadoop-test</artifactId>
28-
</dependency>
2921
<dependency>
3022
<groupId>junit</groupId>
3123
<artifactId>junit</artifactId>

ch05/pom.xml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch05</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
1414
<name>Chapter 5: Developing a MapReduce Application</name>
1515
<dependencies>
16-
<dependency>
17-
<groupId>org.apache.hadoop</groupId>
18-
<artifactId>hadoop-core</artifactId>
19-
</dependency>
20-
<dependency>
21-
<groupId>org.apache.hadoop</groupId>
22-
<artifactId>hadoop-test</artifactId>
23-
</dependency>
2416
<dependency>
2517
<groupId>junit</groupId>
2618
<artifactId>junit</artifactId>

ch07/pom.xml

+2-15
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch07</artifactId>
@@ -23,19 +23,6 @@
2323
<artifactId>ch02</artifactId>
2424
<version>3.0</version>
2525
</dependency>
26-
<dependency>
27-
<groupId>com.hadoopbook</groupId>
28-
<artifactId>ch08</artifactId>
29-
<version>3.0</version>
30-
</dependency>
31-
<dependency>
32-
<groupId>org.apache.hadoop</groupId>
33-
<artifactId>hadoop-core</artifactId>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.apache.hadoop</groupId>
37-
<artifactId>hadoop-test</artifactId>
38-
</dependency>
3926
<dependency>
4027
<groupId>junit</groupId>
4128
<artifactId>junit</artifactId>

ch08/pom.xml

+2-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch08</artifactId>
@@ -28,14 +28,6 @@
2828
<artifactId>ch04</artifactId>
2929
<version>3.0</version>
3030
</dependency>
31-
<dependency>
32-
<groupId>org.apache.hadoop</groupId>
33-
<artifactId>hadoop-core</artifactId>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.apache.hadoop</groupId>
37-
<artifactId>hadoop-test</artifactId>
38-
</dependency>
3931
<dependency>
4032
<groupId>junit</groupId>
4133
<artifactId>junit</artifactId>

ch11/pom.xml

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch11</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
1414
<name>Chapter 11: Pig</name>
1515
<dependencies>
16-
<dependency>
17-
<groupId>org.apache.hadoop</groupId>
18-
<artifactId>hadoop-core</artifactId>
19-
</dependency>
16+
<!-- TODO: make sure Hadoop version is compatible -->
2017
<dependency>
2118
<groupId>org.apache.pig</groupId>
2219
<artifactId>pig</artifactId>

ch12/pom.xml

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>com.hadoopbook</groupId>
6-
<artifactId>book</artifactId>
6+
<artifactId>hadoop-meta</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch12</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
1414
<name>Chapter 12: Hive</name>
1515
<dependencies>
16-
<dependency>
17-
<groupId>org.apache.hadoop</groupId>
18-
<artifactId>hadoop-core</artifactId>
19-
</dependency>
16+
<!-- TODO: make sure Hadoop version is compatible -->
2017
<dependency>
2118
<groupId>org.apache.hive</groupId>
2219
<artifactId>hive-common</artifactId>

ch13/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.hadoopbook</groupId>
66
<artifactId>book</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../book/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch13</artifactId>

ch14/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.hadoopbook</groupId>
66
<artifactId>book</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../book/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch14</artifactId>

ch15/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.hadoopbook</groupId>
66
<artifactId>book</artifactId>
77
<version>3.0</version>
8-
<relativePath>../pom.xml</relativePath>
8+
<relativePath>../book/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
1111
<artifactId>ch15</artifactId>

0 commit comments

Comments
 (0)