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

Error strewn build

liamhadoop opened this issue · comments

I've tried building with

mvn package -DskipTests -Dhadoop.version.1.1.1

on cmd.exe.

I get a slew of errors such as 'package org.apache.hadoop.io does not exist', 'package org.apache.hadoop.conf does not exist', 'package org.apache.hadoop.mapreduce does not exist'. I'm also getting numerous "cannot find symbol" errors relating to JobBuilder.java.

What could be causing this? This is frustrating as I have had numerous errors for the last 2/3 days trying to run this, many of which I have resolved, but new errors still keep cropping up.

The batch file for the script I'm using to run this is as follows:

set HADOOP_HEAPSIZE=500
set HADOOP_HOME=G:\Hadoop\hadoop-0.20.2
set HADOOP_INSTALL=G:\Hadoop\hadoop-0.20.2
set M2_HOME=G:\hadoop-book-3e-draft\apache-maven-3.0.5
set M2=%M2_HOME%\bin
set JAVA_HOME=G:\Java\jdk1.7.0_11
set PATH=%M2%;%JAVA_HOME%\bin;%HADOOP_INSTALL%\bin
mvn package -DskipTests -Dhadoop.version.1.1.1

You seem to have a typo:

-Dhadoop.version.1.1.1

instead of

-Dhadoop.version=1.1.1

I've just pushed a version which doesn't require you to specify a version unless you want to override the default: fb237f6