accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Vines <jvi...@gmail.com>
Subject Re: Test set: org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest failed in accumulo-1.4.3
Date Tue, 11 Feb 2014 22:00:43 GMT
1.4.3 is hadoop0.20/hadoop1 only, while CDH4 is based off of hadoop2.


On Tue, Feb 11, 2014 at 4:49 PM, Chris Rigano <chris.p.rigano@gmail.com>wrote:

> Greetings to all esteem colleague,
>
> Following indicate a build failure for accumulo-examples indicating  the
> failure of Test set:
> org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest.
>
> I would very much appreciate advice on actions to take in detail that would
> resolve this issue.
>
> The environment is accumulo-1.4.3, CDH4.3 QuickStart using netbeans to
> import the maven project  accumulo-examples after installing accumulo from
> the accumulo-1.4.3cdh4.3.tar.gz.
>
> The VM is available upon request.
>
> Cloudera has not responded in there news groups.
>
> In advance thanks for your assistance.
>
> The results of executing the build with dependencies option are listed
> below:
>
> cd /usr/lib/accumulo/src/examples/simple; JAVA_HOME=/usr/java/jdk1.6.0_32
> /home/cloudera/netbeans-7.4/java/maven/bin/mvn install
> Scanning for projects...
>
> Some problems were encountered while building the effective model for
> org.apache.accumulo:examples-simple:jar:1.4.3-cdh4.3.0
> 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-clean-plugin is missing. @
> org.apache.accumulo:accumulo:1.4.3-cdh4.3.0, /usr/lib/accumulo/pom.xml,
> line 81, column 15
> 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-resources-plugin is missing. @
> org.apache.accumulo:accumulo:1.4.3-cdh4.3.0, /usr/lib/accumulo/pom.xml,
> line 152, column 15
>
> It is highly recommended to fix these problems because they threaten the
> stability of your build.
>
> For this reason, future Maven versions might no longer support building
> such malformed projects.
>
>
> ------------------------------------------------------------------------
> Building examples-simple 1.4.3-cdh4.3.0
> ------------------------------------------------------------------------
>
> --- maven-enforcer-plugin:1.0:enforce (enforce-mvn) @ examples-simple ---
>
> --- maven-resources-plugin:2.5:resources (default-resources) @
> examples-simple ---
> [debug] execute contextualize
> Using 'UTF-8' encoding to copy filtered resources.
> skip non existing resourceDirectory
> /usr/lib/accumulo/src/examples/simple/src/main/resources
>
> --- maven-dependency-plugin:2.1:copy-dependencies (copy-dependencies) @
> examples-simple ---
> log4j-1.2.16.jar already exists in destination.
>
> --- maven-compiler-plugin:2.3.2:compile (default-compile) @ examples-simple
> ---
> Compiling 40 source files to
> /usr/lib/accumulo/src/examples/simple/target/classes
>
> --- maven-resources-plugin:2.5:testResources (default-testResources) @
> examples-simple ---
> [debug] execute contextualize
> Using 'UTF-8' encoding to copy filtered resources.
> skip non existing resourceDirectory
> /usr/lib/accumulo/src/examples/simple/src/test/resources
>
> --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> examples-simple ---
> Compiling 5 source files to
> /usr/lib/accumulo/src/examples/simple/target/test-classes
>
> --- maven-surefire-plugin:2.9:test (default-test) @ examples-simple ---
> Surefire report directory:
> /usr/lib/accumulo/src/examples/simple/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.89 sec
> <<< FAILURE!
> Running org.apache.accumulo.examples.simple.filedata.ChunkCombinerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
> Running org.apache.accumulo.examples.simple.filedata.ChunkInputStreamTest
> Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.175 sec
> Running org.apache.accumulo.examples.simple.filedata.KeyUtilTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
> Running org.apache.accumulo.examples.simple.dirlist.CountTest
> Max depth              : 3
> Time to find max depth : 2 ms
> Time to compute counts : 7 ms
> Entries scanned        : 30
> Counts inserted        : 4
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.072 sec
>
> Results :
>
> Tests in error:
>   test(org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest):
> Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface
> was expected
>
>
> testErrorOnNextWithoutClose(org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest):
> Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface
> was expected
>
>
> testInfoWithoutChunks(org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest):
> Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface
> was expected
>
> Tests run: 15, Failures: 0, Errors: 3, Skipped: 0
>
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 17.620s
> Finished at: Tue Feb 11 14:34:18 PST 2014
> Final Memory: 20M/57M
> ------------------------------------------------------------------------
> Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on
> project examples-simple: There are test failures.
>
> Please refer to
> /usr/lib/accumulo/src/examples/simple/target/surefire-reports for the
> individual test results.
> -> [Help 1]
>
> To see the full stack trace of the errors, re-run Maven with the -e switch.
> Re-run Maven using the -X switch to enable full debug logging.
>
> For more information about the errors and possible solutions, please read
> the following articles:
> [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> -> [Help 1]
>
> ==============================================================================
>
> Following is: The results of the failed report in
>  "/usr/lib/accumulo/src/examples/simple/target/surefire-reports"
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest
>
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 2.297 sec
> <<< FAILURE!
> test(org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest)
>  Time elapsed: 1.542 sec  <<< ERROR!
> java.lang.IncompatibleClassChangeError: Found class
> org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected
>         at
>
> org.apache.accumulo.core.client.mapreduce.InputFormatBase$RecordReaderBase.initialize(InputFormatBase.java:1108)
>         at
>
> org.apache.accumulo.examples.simple.filedata.ChunkInputFormat$1.initialize(ChunkInputFormat.java:47)
>         at
>
> org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest.test(ChunkInputFormatTest.java:95)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at
>
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>         at
>
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
>         at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
>         at
>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
>
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
>         at
>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
>         at
>
> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
>         at
>
> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
>         at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
>
> testErrorOnNextWithoutClose(org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest)
>  Time elapsed: 0.084 sec  <<< ERROR!
> java.lang.IncompatibleClassChangeError: Found class
> org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected
>         at
>
> org.apache.accumulo.core.client.mapreduce.InputFormatBase$RecordReaderBase.initialize(InputFormatBase.java:1108)
>         at
>
> org.apache.accumulo.examples.simple.filedata.ChunkInputFormat$1.initialize(ChunkInputFormat.java:47)
>         at
>
> org.apache.accumulo.examples.simple.filedata.ChunkInputFormatTest.testErrorOnNextWithoutClose(ChunkInputFormatTest.java:146)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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:232)
>



-- 
Cheers
~John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message