[
https://issues.apache.org/jira/browse/FLINK-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381506#comment-14381506
]
ASF GitHub Bot commented on FLINK-1785:
---------------------------------------
GitHub user hsaputra opened a pull request:
https://github.com/apache/flink/pull/536
[FLINK-1785] [test] Master tests in flink-tachyon fail with
java.lang.NoSuchFieldError: IBM_JAVA.
Move the hadoop-hdfs and hadoop-common test jars dependency before Tachyon.
Looks like Maven respect the ordering of dependencies and first
declarations win.
Seemed like Tachyon brings transitive dependencies of older hadoop versions.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hsaputra/flink
FLINK-1785_add_hadoop_deps_to_test_scope
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/536.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #536
----
commit f266a6c8fbe2b44cc851708d5d786e4b9ecef912
Author: Henry Saputra <[email protected]>
Date: 2015-03-26T07:25:49Z
[FLINK-1785] [test] Master tests in flink-tachyon fail with
java.lang.NoSuchFieldError: IBM_JAVA.
Move the hadoop-hdfs and hadoop-common test jars dependency before Tachyon.
Looks like Maven respect the ordering of dependencies and first
declarations win.
Seemed like Tachyon brings transitive dependencies of older hadoop versions.
----
> Master tests in flink-tachyon fail with java.lang.NoSuchFieldError: IBM_JAVA
> ----------------------------------------------------------------------------
>
> Key: FLINK-1785
> URL: https://issues.apache.org/jira/browse/FLINK-1785
> Project: Flink
> Issue Type: Bug
> Components: test
> Reporter: Henry Saputra
>
> The master fail in flink-tachyon test when running mvn test:
> {code}
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.flink.tachyon.HDFSTest
> Running org.apache.flink.tachyon.TachyonFileSystemWrapperTest
> java.lang.NoSuchFieldError: IBM_JAVA
> at
> org.apache.hadoop.security.UserGroupInformation.getOSLoginModuleName(UserGroupInformation.java:303)
> at
> org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:348)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:807)
> at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:266)
> at org.apache.hadoop.hdfs.DFSTestUtil.formatNameNode(DFSTestUtil.java:122)
> at
> org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:775)
> at
> org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:642)
> at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:334)
> at
> org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:316)
> at org.apache.flink.tachyon.HDFSTest.createHDFS(HDFSTest.java:62)
> 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:606)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> ...
> Results :
> Failed tests:
> HDFSTest.createHDFS:76 Test failed IBM_JAVA
> HDFSTest.createHDFS:76 Test failed Could not initialize class
> org.apache.hadoop.security.UserGroupInformation
> Tests in error:
> HDFSTest.destroyHDFS:83 NullPointer
> HDFSTest.destroyHDFS:83 NullPointer
> TachyonFileSystemWrapperTest.testHadoopLoadability:116 ยป
> NoClassDefFound Could...
> Tests run: 6, Failures: 3, Errors: 3, Skipped: 0
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)