Skip to content

Commit

Permalink
Rename ch10-mr-types to ch08-mr-types
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Nov 13, 2014
1 parent c2a38e9 commit 5f6208d
Show file tree
Hide file tree
Showing 86 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ch10-mr-types/pom.xml → ch08-mr-types/pom.xml
Expand Up @@ -8,10 +8,10 @@
<relativePath>../hadoop-meta/pom.xml</relativePath>
</parent>
<groupId>com.hadoopbook</groupId>
<artifactId>ch10-mr-types</artifactId>
<artifactId>ch08-mr-types</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<name>Chapter 10: MapReduce Types and Formats</name>
<name>Chapter 8: MapReduce Types and Formats</name>
<dependencies>
<dependency>
<groupId>com.hadoopbook</groupId>
Expand Down
File renamed without changes.
Expand Up @@ -12,7 +12,7 @@
import static org.apache.crunch.types.writable.Writables.strings;
import static org.apache.crunch.types.writable.Writables.tableOf;

// Crunch version of ch10-mr-types MaxTemperatureWithMultipleInputsCrunch
// Crunch version of ch08-mr-types MaxTemperatureWithMultipleInputsCrunch
// TODO: sanity check output
public class MaxTemperatureWithMultipleInputsCrunch {

Expand Down
2 changes: 1 addition & 1 deletion hadoop-examples/pom.xml
Expand Up @@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>com.hadoopbook</groupId>
<artifactId>ch10-mr-types</artifactId>
<artifactId>ch08-mr-types</artifactId>
<version>3.0</version>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -17,7 +17,7 @@
<module>ch06-avro</module>
<module>ch07-parquet</module>
<module>ch06-mr-dev</module>
<module>ch10-mr-types</module>
<module>ch08-mr-types</module>
<module>ch11-mr-features</module>
<module>ch15-sqoop</module>
<module>ch16-pig</module>
Expand Down
4 changes: 2 additions & 2 deletions snippet/bin/check_manuscript.sh
Expand Up @@ -6,7 +6,7 @@ bin=`cd "$bin"; pwd`
actual="$bin"/../actual
book_workspace=~/book-workspace/htdg-git

for ch in ch02-mr-intro ch03-hdfs ch05-io ch06-mr-dev ch10-mr-types ch11-mr-features ch16-pig ch17-hive ch21-zk
for ch in ch02-mr-intro ch03-hdfs ch05-io ch06-mr-dev ch08-mr-types ch11-mr-features ch16-pig ch17-hive ch21-zk
do
# remove id attributes from program listings, and add a newline before </programlisting>
sed '/<programlisting/s/ id="[^"]*"//; s|</programlisting>|\
Expand All @@ -20,4 +20,4 @@ sed -e '/<programlisting/s/ id="[^"]*"//; s|</programlisting>|\
$bin/check_manuscript.py /tmp/ch06-avro.xml $actual/ch06-avro/*

# Common check
$bin/check_manuscript.py /tmp/ch10-mr-types.xml $actual/common/*
$bin/check_manuscript.py /tmp/ch08-mr-types.xml $actual/common/*
2 changes: 1 addition & 1 deletion snippet/bin/generate_listings.sh
Expand Up @@ -13,7 +13,7 @@ perl $bin/phragmite_db.pl $actual/ch06-avro/ $(grep -ElR '(// ?cc|// ?==)' --inc
perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch06-mr-dev)
perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $bin/../../../hadoop-book-mr-dev/pom.xml
perl $bin/phragmite_db.pl $actual/ch06-mr-dev/ $bin/../../ch06-mr-dev/src/main/resources/max-temp-workflow/workflow.xml
perl $bin/phragmite_db.pl $actual/ch10-mr-types/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch10-mr-types)
perl $bin/phragmite_db.pl $actual/ch08-mr-types/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08-mr-types)
perl $bin/phragmite_db.pl $actual/common/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../common)
perl $bin/phragmite_db.pl $actual/ch11-mr-features/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch11-mr-features)
perl $bin/phragmite_db.pl $actual/ch21-zk/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch21-zk)
2 changes: 1 addition & 1 deletion snippet/src/test/java/ExamplesIT.java
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-mr-intro,ch05-io,ch06-avro,ch06-mr-dev,ch10-mr-types,ch11-mr-features";
private static final String EXAMPLE_CHAPTERS_DEFAULT = "ch02-mr-intro,ch05-io,ch06-avro,ch06-mr-dev,ch08-mr-types,ch11-mr-features";

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

0 comments on commit 5f6208d

Please sign in to comment.