Skip to content

Commit

Permalink
Renamed chxx-* to actual chapter numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Sep 18, 2014
1 parent 6550a71 commit 8710b56
Show file tree
Hide file tree
Showing 126 changed files with 18 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ch04-avro/pom.xml → ch06-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch04-avro</artifactId>
<artifactId>ch06-avro</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter 4: Hadoop I/O (Avro)</name>
<name>Chapter 6: Hadoop I/O (Avro)</name>
<dependencies>
<dependency>
<groupId>org.apache.avro</groupId>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
hadoop jar avro-examples.jar AvroSort input/avro/pairs.avro output \
ch04-avro/src/main/resources/SortedStringPair.avsc
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chxx-parquet/pom.xml → ch07-parquet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>chxx-parquet</artifactId>
<artifactId>ch07-parquet</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter xx: Parquet</name>
<name>Chapter 7: Parquet</name>
<dependencies>
<dependency>
<groupId>com.twitter</groupId>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chxx-crunch/pom.xml → ch18-crunch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>chxx-crunch</artifactId>
<artifactId>ch18-crunch</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter xx: Crunch</name>
<name>Chapter 18: Crunch</name>
<dependencies>
<dependency>
<groupId>org.apache.crunch</groupId>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions chxx-spark/pom.xml → ch19-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<relativePath>../book/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>chxx-spark</artifactId>
<artifactId>ch19-spark</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter xx: Spark</name>
<name>Chapter 19: Spark</name>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RDDCreationTest extends FunSuite with BeforeAndAfterEach {
}

// test("whole text file") {
// val inputPath = "chxx-spark/src/test/resources/fruit.txt"
// val inputPath = "ch19-spark/src/test/resources/fruit.txt"
// val files: RDD[(String, String)] = sc.wholeTextFiles(inputPath)
// assert(files.first._1.endsWith(inputPath))
// assert(files.first._2 === "cherry\napple\nbanana\n")
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
<module>ch02</module>
<module>ch03</module>
<module>ch04</module>
<module>ch04-avro</module>
<module>chxx-parquet</module>
<module>ch06-avro</module>
<module>ch07-parquet</module>
<module>ch05</module>
<module>ch07</module>
<module>ch08</module>
<module>ch11</module>
<module>ch12</module>
<module>chxx-crunch</module>
<module>chxx-spark</module>
<module>ch18-crunch</module>
<module>ch19-spark</module>
<module>ch13</module>
<module>ch14</module>
<module>ch15</module>
Expand Down
4 changes: 2 additions & 2 deletions snippet/bin/check_manuscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ done

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

# Common check
$bin/check_manuscript.py /tmp/ch07.xml $actual/common/*
2 changes: 1 addition & 1 deletion snippet/bin/generate_listings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ actual="$bin"/../actual
perl $bin/phragmite_db.pl $actual/ch02/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch02)
perl $bin/phragmite_db.pl $actual/ch03/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch03)
perl $bin/phragmite_db.pl $actual/ch04/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch04)
perl $bin/phragmite_db.pl $actual/ch04-avro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch04-avro)
perl $bin/phragmite_db.pl $actual/ch06-avro/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch06-avro)
perl $bin/phragmite_db.pl $actual/ch05/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch05)
perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../../hadoop-book-mr-dev/pom.xml
perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../ch05/src/main/resources/max-temp-workflow/workflow.xml
Expand Down
2 changes: 1 addition & 1 deletion snippet/src/test/java/ExamplesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class ExamplesIT {
private static final String MODE_DEFAULT = "local";

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

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

0 comments on commit 8710b56

Please sign in to comment.