Skip to content

Commit

Permalink
Support a default profile for Hadoop version.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Jan 13, 2012
1 parent 540b640 commit 560cd39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You also need to install Maven.

Then you can build the code with:

% mvn package -DskipTests -Phadoop.version=1.0.0
% mvn package -DskipTests

You should then be able to run the examples from the book.

Expand Down
4 changes: 2 additions & 2 deletions hadoop-meta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ A module which allows the Hadoop dependencies to be specified by a Maven profile
<id>apache-1.0.0</id>
<activation>
<property>
<name>hadoop.version</name>
<value>1.0.0</value>
<!-- This is the default profile -->
<name>!hadoop.version</name>
</property>
</activation>
<properties>
Expand Down
5 changes: 1 addition & 4 deletions snippet/README
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ Example invocations:
# You need to have an unpacked copy of Hadoop in this directory
export HADOOP_HOME=~/dev/hadoop-1.0.0/

# From the top level
mvn verify -Phadoop.version=1.0.0

# From the snippet directory
# From the top level or the snippet module directory
mvn verify

# Run against a pseudo cluster (you need to start it first)
Expand Down

0 comments on commit 560cd39

Please sign in to comment.