hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devaraj k <devara...@huawei.com>
Subject RE: Unable to build hadoop-mapreduce-project
Date Thu, 19 Apr 2012 05:23:30 GMT
It fails in windows with the mentioned error because windows cannot execute the .sh file directly.
You can do some workaround for this problem to make it work. 

Merge this below patch and check, it will work.

https://issues.apache.org/jira/browse/MAPREDUCE-3881 

Thanks
Devaraj

________________________________________
From: Apurv Verma [dapurv5@gmail.com]
Sent: Thursday, April 19, 2012 7:18 AM
To: mapreduce-dev@hadoop.apache.org
Subject: Unable to build hadoop-mapreduce-project

Hello,
 I want to build the hadoop-trunk with maven and make it an eclipse
project. I was following the instructions given on the page [0] Here is
what I have done.


   1. Installed the protobuf library from source. protoc --version gives
   libprotoc 2.4.1
   2. I checked that libprotobuf library is in library path using ldconfig
   -p.
   3. When I cd into hadoop-mapreduce-project and do  *mvn clean install
   -P-cbuild -DskipTests* I get the following errors.

[INFO] Reactor Summary:
[INFO]
[INFO] hadoop-yarn ....................................... SUCCESS [3.687s]
[INFO] hadoop-yarn-api ................................... SUCCESS [20.117s]
[INFO] hadoop-yarn-common ................................ FAILURE [0.431s]
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 26.005s
[INFO] Finished at: Thu Apr 19 06:40:03 IST 2012
[INFO] Final Memory: 25M/246M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec
(generate-version) on project hadoop-yarn-common: Command execution failed.
Cannot run program "scripts/saveVersion.sh" (in directory
"/media/MyVolume/MyPrograms/Eclipse/hadoop-trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common"):
java.io.IOException: error=13, Permission denied -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :hadoop-yarn-common


[0]
http://wiki.apache.org/hadoop/QwertyManiac/BuildingHadoopTrunk#Building_trunk


--
thanks and regards,

Apurv Verma
India

Mime
View raw message