I try to build the source with command:
% mvn package -DskipTests -Dhadoop.version=1.1.1
And got this error:
/usr/local/maven/hadoop-book-master/common/src/main/java/oldapi/NcdcStationMetadataParser.java:[5,7] error: error while writing NcdcStationMetadataParser: could not create parent directories
Would you please show me how to fix this error? Thank you.
Use mvn package -DskipTests -Dhadoop.version=1.1.2
The build would only work with particular versions of Hadoop, and would fail in hard-to-diagnose ways if you specified a version that wasn't hardcoded in the hadoop-meta/pom.xml file. This has now been made much more flexible in #14, so you can specify any version of Hadoop without having to edit hadoop-meta/pom.xml.
I'll close this issue now, but please reopen or file a new one if you encounter more problems.