You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Eric Leung <ya...@gmail.com> on 2012/05/18 17:29:25 UTC

maven compile error caused by test project

Hi all,

When I use maven compile hadoop-common or hadoop-hdfs project on windows os
with cygwin,
I will get failure.
The log
in D:\Hadoop-trunk\hadoop-common-project\hadoop-common\target\surefire-reports
may give me some suggestion,
But I don't know where is the mistake. I guess it may be caused by the file
and directory format that windows os is different from linux.

-------------------------------------------------------------------------------
Test set: org.apache.hadoop.fs.TestPath
-------------------------------------------------------------------------------
Tests run: 16, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.635 sec
<<< FAILURE!
testGlobEscapeStatus(org.apache.hadoop.fs.TestPath)  Time elapsed: 0.015
sec  <<< ERROR!
java.io.IOException: Mkdirs failed to create
file:/D:/Hadoop-trunk/hadoop-common-project/hadoop-common/target/test/data/testPathGlob/*
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:434)
at
org.apache.hadoop.fs.ChecksumFileSystem.create(ChecksumFileSystem.java:420)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:798)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:779)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:678)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:667)
at org.apache.hadoop.fs.TestPath.testGlobEscapeStatus(TestPath.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)