Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEBAFDC8B for ; Sat, 9 Mar 2013 18:21:13 +0000 (UTC) Received: (qmail 48416 invoked by uid 500); 9 Mar 2013 18:21:13 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 48349 invoked by uid 500); 9 Mar 2013 18:21:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 48340 invoked by uid 99); 9 Mar 2013 18:21:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Mar 2013 18:21:13 +0000 Date: Sat, 9 Mar 2013 18:21:13 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9326) maven-surefire-plugin:2.12.3:test (default-test) on project hadoop-common: There a test failures. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598029#comment-13598029 ] Chris Nauroth commented on HADOOP-9326: --------------------------------------- [~aymenjla], are you running as root? I recently discovered that {{TestDiskChecker}} fails if running as root due to some assumptions in the test code about file permissions. The test doesn't account for the fact that root is special and can access anything. Full details are in HADOOP-8973. Until we fix it, I recommend re-running your tests as a non-root user. As others have said, please continue discussion on the user list if necessary. I'm only replying here because I couldn't find an existing thread in the user list, and I wanted to make sure you would see this information. Hope this helps, --Chris > maven-surefire-plugin:2.12.3:test (default-test) on project hadoop-common: There a test failures. > ------------------------------------------------------------------------------------------------- > > Key: HADOOP-9326 > URL: https://issues.apache.org/jira/browse/HADOOP-9326 > Project: Hadoop Common > Issue Type: Bug > Components: build, test > Environment: For information, i take hadoop with GIT and i run it on mac OS > Reporter: JLASSI Aymen > Original Estimate: 336h > Remaining Estimate: 336h > > I'd like to compile hadoop from source code, and when i launch test-step, i have the desciption as follows, when i skip the test-step to the package step, i have the same problem, the same description of bug: > Results : > Failed tests: testFailFullyDelete(org.apache.hadoop.fs.TestFileUtil): The directory xSubDir *should* not have been deleted. expected: but was: > testFailFullyDeleteContents(org.apache.hadoop.fs.TestFileUtil): The directory xSubDir *should* not have been deleted. expected: but was: > testListStatusThrowsExceptionForUnreadableDir(org.apache.hadoop.fs.TestFSMainOperationsLocalFileSystem): Should throw IOException > test0[0](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for build/test/temp/RELATIVE1 in build/test/temp/RELATIVE0/block4197707426846287299.tmp - FAILED! > testROBufferDirAndRWBufferDir[0](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for build/test/temp/RELATIVE2 in build/test/temp/RELATIVE1/block138767728739012230.tmp - FAILED! > testRWBufferDirBecomesRO[0](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for build/test/temp/RELATIVE3 in build/test/temp/RELATIVE4/block4888615109050601773.tmp - FAILED! > test0[1](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE1 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE0/block4663369813226761504.tmp - FAILED! > testROBufferDirAndRWBufferDir[1](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE2 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE1/block2846944239985650460.tmp - FAILED! > testRWBufferDirBecomesRO[1](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE3 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/ABSOLUTE4/block4367331619344952181.tmp - FAILED! > test0[2](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for file:/Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED1 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED0/block5687619346377173125.tmp - FAILED! > testROBufferDirAndRWBufferDir[2](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for file:/Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED2 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED1/block2235209534902942511.tmp - FAILED! > testRWBufferDirBecomesRO[2](org.apache.hadoop.fs.TestLocalDirAllocator): Checking for file:/Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED3 in /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/build/test/temp/QUALIFIED4/block6994640486900109274.tmp - FAILED! > testReportChecksumFailure(org.apache.hadoop.fs.TestLocalFileSystem) > testListStatusThrowsExceptionForUnreadableDir(org.apache.hadoop.fs.viewfs.TestFSMainOperationsLocalFileSystem): Should throw IOException > testCount(org.apache.hadoop.metrics2.util.TestSampleQuantiles): expected:<50[.00 %ile +/- 5.00%: 1337(..) > testCheckDir_notDir_local(org.apache.hadoop.util.TestDiskChecker): checkDir success > testCheckDir_notReadable_local(org.apache.hadoop.util.TestDiskChecker): checkDir success > testCheckDir_notWritable_local(org.apache.hadoop.util.TestDiskChecker): checkDir success > testCheckDir_notListable_local(org.apache.hadoop.util.TestDiskChecker): checkDir success > Tests run: 1842, Failures: 19, Errors: 0, Skipped: 22 > [INFO] ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Hadoop Main ................................ SUCCESS [1.805s] > [INFO] Apache Hadoop Project POM ......................... SUCCESS [0.527s] > [INFO] Apache Hadoop Annotations ......................... SUCCESS [1.194s] > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS [0.980s] > [INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.524s] > [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [3.313s] > [INFO] Apache Hadoop Auth ................................ SUCCESS [6.629s] > [INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.955s] > [INFO] Apache Hadoop Common .............................. FAILURE [23:46.857s] > [INFO] Apache Hadoop Common Project ...................... SKIPPED > [INFO] Apache Hadoop HDFS ................................ SKIPPED > [INFO] Apache Hadoop HttpFS .............................. SKIPPED > [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED > [INFO] Apache Hadoop HDFS Project ........................ SKIPPED > [INFO] hadoop-yarn ....................................... SKIPPED > [INFO] hadoop-yarn-api ................................... SKIPPED > [INFO] hadoop-yarn-common ................................ SKIPPED > [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-yarn-client ................................ SKIPPED > [INFO] hadoop-yarn-applications .......................... SKIPPED > [INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED > [INFO] hadoop-mapreduce-client ........................... SKIPPED > [INFO] hadoop-mapreduce-client-core ...................... SKIPPED > [INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED > [INFO] hadoop-yarn-site .................................. SKIPPED > [INFO] hadoop-yarn-project ............................... 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] hadoop-mapreduce-client-hs-plugins ................ SKIPPED > [INFO] Apache Hadoop MapReduce Examples .................. SKIPPED > [INFO] hadoop-mapreduce .................................. SKIPPED > [INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED > [INFO] Apache Hadoop Distributed Copy .................... SKIPPED > [INFO] Apache Hadoop Archives ............................ SKIPPED > [INFO] Apache Hadoop Rumen ............................... SKIPPED > [INFO] Apache Hadoop Gridmix ............................. SKIPPED > [INFO] Apache Hadoop Data Join ........................... SKIPPED > [INFO] Apache Hadoop Extras .............................. SKIPPED > [INFO] Apache Hadoop Pipes ............................... SKIPPED > [INFO] Apache Hadoop Tools Dist .......................... SKIPPED > [INFO] Apache Hadoop Tools ............................... SKIPPED > [INFO] Apache Hadoop Distribution ........................ SKIPPED > [INFO] Apache Hadoop Client .............................. SKIPPED > [INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 24:04.874s > [INFO] Finished at: Fri Feb 22 16:02:18 CET 2013 > [INFO] Final Memory: 29M/123M > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test (default-test) on project hadoop-common: There are test failures. > [ERROR] > [ERROR] Please refer to /Users/aymenjlassi/Desktop/hadoop_source/releaseGit/hadoop-common/hadoop-common-project/hadoop-common/target/surefire-reports for the individual test results. > [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 :hadoop-common -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira