Skip to content

Commit 8710b56

Browse files
committed
Renamed chxx-* to actual chapter numbers.
1 parent 6550a71 commit 8710b56

File tree

126 files changed

+18
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+18
-18
lines changed
File renamed without changes.
File renamed without changes.

ch04-avro/pom.xml ch06-avro/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
11-
<artifactId>ch04-avro</artifactId>
11+
<artifactId>ch06-avro</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
14-
<name>Chapter 4: Hadoop I/O (Avro)</name>
14+
<name>Chapter 6: Hadoop I/O (Avro)</name>
1515
<dependencies>
1616
<dependency>
1717
<groupId>org.apache.avro</groupId>
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
hadoop jar avro-examples.jar AvroSort input/avro/pairs.avro output \
2-
ch04-avro/src/main/resources/SortedStringPair.avsc
2+
ch06-avro/src/main/resources/SortedStringPair.avsc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

chxx-parquet/pom.xml ch07-parquet/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
11-
<artifactId>chxx-parquet</artifactId>
11+
<artifactId>ch07-parquet</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
14-
<name>Chapter xx: Parquet</name>
14+
<name>Chapter 7: Parquet</name>
1515
<dependencies>
1616
<dependency>
1717
<groupId>com.twitter</groupId>
File renamed without changes.
File renamed without changes.
File renamed without changes.

chxx-crunch/pom.xml ch18-crunch/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<relativePath>../hadoop-meta/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
11-
<artifactId>chxx-crunch</artifactId>
11+
<artifactId>ch18-crunch</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
14-
<name>Chapter xx: Crunch</name>
14+
<name>Chapter 18: Crunch</name>
1515
<dependencies>
1616
<dependency>
1717
<groupId>org.apache.crunch</groupId>
File renamed without changes.
File renamed without changes.

chxx-spark/pom.xml ch19-spark/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<relativePath>../book/pom.xml</relativePath>
99
</parent>
1010
<groupId>com.hadoopbook</groupId>
11-
<artifactId>chxx-spark</artifactId>
11+
<artifactId>ch19-spark</artifactId>
1212
<packaging>jar</packaging>
1313
<version>3.0</version>
14-
<name>Chapter xx: Spark</name>
14+
<name>Chapter 19: Spark</name>
1515
<dependencies>
1616
<dependency>
1717
<groupId>org.apache.spark</groupId>
File renamed without changes.

chxx-spark/src/test/scala/RDDCreationTest.scala ch19-spark/src/test/scala/RDDCreationTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RDDCreationTest extends FunSuite with BeforeAndAfterEach {
5151
}
5252

5353
// test("whole text file") {
54-
// val inputPath = "chxx-spark/src/test/resources/fruit.txt"
54+
// val inputPath = "ch19-spark/src/test/resources/fruit.txt"
5555
// val files: RDD[(String, String)] = sc.wholeTextFiles(inputPath)
5656
// assert(files.first._1.endsWith(inputPath))
5757
// assert(files.first._2 === "cherry\napple\nbanana\n")

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
<module>ch02</module>
1515
<module>ch03</module>
1616
<module>ch04</module>
17-
<module>ch04-avro</module>
18-
<module>chxx-parquet</module>
17+
<module>ch06-avro</module>
18+
<module>ch07-parquet</module>
1919
<module>ch05</module>
2020
<module>ch07</module>
2121
<module>ch08</module>
2222
<module>ch11</module>
2323
<module>ch12</module>
24-
<module>chxx-crunch</module>
25-
<module>chxx-spark</module>
24+
<module>ch18-crunch</module>
25+
<module>ch19-spark</module>
2626
<module>ch13</module>
2727
<module>ch14</module>
2828
<module>ch15</module>

snippet/bin/check_manuscript.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ done
1717

1818
# Avro check
1919
sed -e '/<programlisting/s/ id="[^"]*"//; s|</programlisting>|\
20-
</programlisting>|' $book_workspace/chxx-avro.xml > /tmp/chxx-avro.xml
21-
$bin/check_manuscript.py /tmp/chxx-avro.xml $actual/ch04-avro/*
20+
</programlisting>|' $book_workspace/ch06-avro.xml > /tmp/ch06-avro.xml
21+
$bin/check_manuscript.py /tmp/ch06-avro.xml $actual/ch06-avro/*
2222

2323
# Common check
2424
$bin/check_manuscript.py /tmp/ch07.xml $actual/common/*

snippet/bin/generate_listings.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ actual="$bin"/../actual
99
perl $bin/phragmite_db.pl $actual/ch02/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch02)
1010
perl $bin/phragmite_db.pl $actual/ch03/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch03)
1111
perl $bin/phragmite_db.pl $actual/ch04/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch04)
12-
perl $bin/phragmite_db.pl $actual/ch04-avro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch04-avro)
12+
perl $bin/phragmite_db.pl $actual/ch06-avro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch06-avro)
1313
perl $bin/phragmite_db.pl $actual/ch05/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch05)
1414
perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../../hadoop-book-mr-dev/pom.xml
1515
perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../ch05/src/main/resources/max-temp-workflow/workflow.xml

snippet/src/test/java/ExamplesIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class ExamplesIT {
5858
private static final String MODE_DEFAULT = "local";
5959

6060
private static final String EXAMPLE_CHAPTERS_PROPERTY = "example.chapters";
61-
private static final String EXAMPLE_CHAPTERS_DEFAULT = "ch02,ch04,ch04-avro,ch05,ch07,ch08";
61+
private static final String EXAMPLE_CHAPTERS_DEFAULT = "ch02,ch04,ch06-avro,ch05,ch07,ch08";
6262

6363
private static final IOFileFilter HIDDEN_FILE_FILTER =
6464
new OrFileFilter(HiddenFileFilter.HIDDEN, new PrefixFileFilter("_"));

0 commit comments

Comments
 (0)