tomwhite / hadoop-book

Example source code accompanying O'Reilly's "Hadoop: The Definitive Guide" by Tom White
http://www.hadoopbook.com/
3.5k stars 2.57k forks source link

Building and Running the Code 2 #27

Open jonecir opened 8 years ago

jonecir commented 8 years ago

I'm getting the following compilation errors trying to build the book's project code.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project common: Compilation failure [ERROR] /home/hadoop-book-master/common/src/main/java/oldapi/NcdcStationMetadata.java:[7,8] error while writing oldapi.NcdcStationMetadata: could not create parent directories [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :common

Please let me know how to fix it.

Thanks

dbolshak commented 8 years ago

Looks like you don't have permissions or maybe lack of disk space. 29 Янв 2016 г. 17:40 пользователь "Jonecir Souza" notifications@github.com написал:

I'm getting the following compilation errors trying to build the book's project code

[ERROR] Failed to execute goal orgapachemavenplugins:maven-compiler-plugin:31:compile (default-compile) on project common: Compilation failure [ERROR] /home/hadoop-book-master/common/src/main/java/oldapi/NcdcStationMetadatajava:[7,8] error while writing oldapiNcdcStationMetadata: could not create parent directories [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch [ERROR] Re-run Maven using the -X switch to enable full debug logging [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwikiapacheorg/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :common

Please let me know how to fix it

Thanks

— Reply to this email directly or view it on GitHub https://github.com/tomwhite/hadoop-book/issues/27.

jonecir commented 8 years ago

Hi, thanks for your help.

I'm sure the issue is not related to disk space as I still have over 80GB of free space :-)

As for not having permissions, do you have an idea which folder (or file) I should chmod the proper permissions?

Thanks in advance.

jonecir commented 8 years ago

For you information, I chmod the "hadoop-book-master" folder and all its sub-folders to 777 and I'm still getting the same error.