Hai, I don't know the 'official' reason, but it is bad practice to use user ids under 1000. I presume you are using root or some typical user account to build this. The fix for me was to create a new user with an id that is greater than 1000.
Here is an example useradd --id 1001 hadoopuser I hope that works! Kindest regards. Ron On Sun, Jan 29, 2012 at 9:16 PM, Hai Huang <hhuang2...@yahoo.com> wrote: > Hi Ronald, > > I just tried to use > > ============= > > mvn -Pnative compile > > > and it passed. > > So I used command "mvn -e package -Pdist,native,docs -DskipTests > -Dtargc" again, checked the log and found one issue message below > > ============= > > [INFO] --- make-maven-plugin:1.0-beta-1:test (test) @ > hadoop-yarn-server-nodemanager --- > [INFO] make test-container-executor > [INFO] make[1]: Entering directory > `/home/hhf/hadoop-common/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/target/native/container-executor' > [INFO] make[1]: `test-container-executor' is up to date. > [INFO] make[1]: Leaving directory > `/home/hhf/hadoop-common/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/target/native/container-executor' > [INFO] make check-TESTS > [INFO] make[1]: Entering directory > `/home/hhf/hadoop-common/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/target/native/container-executor' > [INFO] Requested user hhuang has id 500, which is below the minimum > allowed 1000 > [INFO] FAIL: test-container-executor > [INFO] ================================================ > [INFO] 1 of 1 test failed > [INFO] Please report to mapreduce-...@hadoop.apache.org > [INFO] ================================================ > > It seemed the issue was from "test-container-executor" , and the issue > message is "... has id 500 , which is below the minimum allowed 1000 ..." > ? > > Best, > > Hai > > > > ----- Original Message ----- > From: Ronald Petty <ronald.pe...@gmail.com> > To: common-dev@hadoop.apache.org; Hai Huang <hhuang2...@yahoo.com> > Cc: > Sent: Sunday, January 29, 2012 11:42:30 PM > Subject: Re: Issue on building hadoop native > > Hai, > > Can you rerun with "-e -X" and the native setting as well? Also, can you > send pastebin the entire build output and send the link to it? > > Kindest regards. > > Ron > > On Sun, Jan 29, 2012 at 3:44 PM, Hai Huang <hhuang2...@yahoo.com> wrote: > > > Hi, > > > > I got the hadoop hadoop source via Git and buit it using the command > > > > ================= > > mvn package -Pdist,native,docs -DskipTests -Dtar > > > > ================= > > > > > > Does anyone the below compilation issue I got ? > > > > ================== > > > > [ERROR] Failed to execute goal > > org.codehaus.mojo:make-maven-plugin:1.0-beta-1:test (test) on project > > hadoop-yarn-server-nodemanager: make returned an exit value != 0. > Aborting > > build; see command output above for more information. -> [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-server-nodemanager > > > > ================= > > > > I am using the CentOs 6.2 and gcc 4.4.6. It looks like that the issue is > > due to build native code. If I just used the command > > > > ============ > > > > mvn package -Pdist -DskipTests -Dtar > > > > ============ > > > > The build was OK. > > > > > > Best, > > > > Hai > > > > > >