Re: Issue on building hadoop native

2012-01-29 Thread Ronald Petty
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

Re: Issue on building hadoop native

2012-01-29 Thread Hai Huang
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) @ hado

Re: Issue on building hadoop native

2012-01-29 Thread Hai Huang
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-serv

Re: Issue on building hadoop native

2012-01-29 Thread Dheeraj Kapur
I have a hack remove -Pnative and try compiling it separately like cd ~/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl gcc -I. -m32 -D_GNU_SOURCE=1 -DHADOOP_CONF_DIR=~/HADOOP_MAPREDUCE/conf/ -Wall -g -

Re: Issue on building hadoop native

2012-01-29 Thread Ronald Petty
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 wrote: > Hi, > > I got the hadoop hadoop source via Git and buit it using the command >

Re: Unit tests

2012-01-29 Thread Ben West
Thanks Uma! Another question: When I run "ant test," it seems like the first test of TestDFSShell throws an NPE and then the rest of them say they can't get a lock. Does anyone know why this is happening? Even if I comment out the first test, then the second one just throws the NPE, so it does

Debugging 1.0.0 with jdb

2012-01-29 Thread Tim Broberg
I'd like to be able to step through unit tests with jdb to debug my classes. Is there a quick-and-easy way to rebuild with ant such that debug information is included? Thanks, - Tim. The information and any attached documents contained in this message may be confidential and/or legally priv

RE: Unit tests

2012-01-29 Thread Uma Maheswara Rao G
From: Ben West [bwsithspaw...@yahoo.com] Sent: Sunday, January 29, 2012 11:11 PM To: common-dev@hadoop.apache.org Subject: Unit tests Hello, I'm trying to write a unit test for my patch at https://issues.apache.org/jira/browse/HADOOP-7943 and I have a fe

Issue on building hadoop native

2012-01-29 Thread Hai Huang
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-plugi

[jira] [Resolved] (HADOOP-1347) Configuration XML bug: empty values

2012-01-29 Thread Suresh Srinivas (Resolved) (JIRA)
[ https://issues.apache.org/jira/browse/HADOOP-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas resolved HADOOP-1347. - Resolution: Won't Fix Closing a very old bug. Please re-open if this still needs to be a

[jira] [Resolved] (HADOOP-6418) FileSystem should have mkdir and create file apis which do not create parent path.

2012-01-29 Thread Suresh Srinivas (Resolved) (JIRA)
[ https://issues.apache.org/jira/browse/HADOOP-6418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suresh Srinivas resolved HADOOP-6418. - Resolution: Fixed This functionality is available in FileContext APIs. Please use it for

Unit tests

2012-01-29 Thread Ben West
Hello, I'm trying to write a unit test for my patch at https://issues.apache.org/jira/browse/HADOOP-7943 and I have a few questions based on reading the wiki (http://wiki.apache.org/hadoop/HowToDevelopUnitTests) 1. The patch is for v1.0, not trunk. Should I be using the "junit.framework" sty