tomwhite / hadoop-book

Example source code accompanying O'Reilly's "Hadoop: The Definitive Guide" by Tom White

Home Page:http://www.hadoopbook.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project build is utterly broken

dlandis opened this issue · comments

Attempting to build according to the instructions in the README:

% mvn package -DskipTests -Dhadoop.version=1.0.1

results in:

[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/dlandis/git/hadoop-book/common/src/main/java/oldapi/MetOfficeRecordParser.java:[4,27] error: package org.apache.hadoop.io does not exist

There also seems to be other issues with the maven configuration as evidenced by the Issues list. This is frustrating since I actually just bought the book (not cheap) only to find the code is a mess.

Please try

% mvn package -DskipTests -Dhadoop.version=1.0.2

I forgot to change the version number in the README when I updated the code to use Hadoop 1.0.2. I've just fixed the README now.

Thanks,
Tom

Closing this since it's two years old now. BTW the build can build against different versions of Hadoop now since #14 was committed.