[
https://issues.apache.org/jira/browse/FLINK-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135088#comment-15135088
]
ASF GitHub Bot commented on FLINK-3337:
---------------------------------------
GitHub user greghogan opened a pull request:
https://github.com/apache/flink/pull/1596
[FLINK-3337] [runtime] mvn test fails on flink-runtime because curator
classes not found
Removes curator dependency exclusions from flink-runtime. This resolves
NoClassDefFoundError exceptions when running `mvn test`.
This partialy reverts e31a4d8.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/greghogan/flink
3337_mvn_test_fails_on_flink_runtime_because_curator_classes_not_found
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1596.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 #1596
----
commit 84e9e0d98692620bca874d0a13e1bc327a8bc78d
Author: Greg Hogan <[email protected]>
Date: 2016-02-05T21:41:24Z
[FLINK-3337] [runtime] mvn test fails on flink-runtime because curator
classes not found
Removes curator dependency exclusions from flink-runtime. This resolves
NoClassDefFoundError exceptions when running `mvn test`.
This partialy reverts e31a4d8.
----
> mvn test fails on flink-runtime because curator classes not found
> -----------------------------------------------------------------
>
> Key: FLINK-3337
> URL: https://issues.apache.org/jira/browse/FLINK-3337
> Project: Flink
> Issue Type: Bug
> Components: Distributed Runtime
> Affects Versions: 1.0.0
> Reporter: Greg Hogan
> Assignee: Greg Hogan
> Attachments: mvn.txt
>
>
> This has been reported before. I am running {{mvn test}} on an AWS
> c4.2xlarge, Flink HEAD (version 69f7f6d9...) and seeing the missing curator
> classes. For example,
> {code}
> testMultipleLeaders(org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionTest)
> Time elapsed: 1.042 sec <<< ERROR!
> java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at
> org.apache.flink.runtime.leaderelection.ZooKeeperLeaderElectionTest.testMultipleLeaders(ZooKeeperLeaderElectionTest.java:291)
> {code}
> {code}
> Tests in error:
>
> JobManagerLeaderElectionTest.testLeaderElection:99->createJobManagerProps:166
> NoClassDefFound
>
> JobManagerLeaderElectionTest.testLeaderReelection:130->createJobManagerProps:166
> NoClassDefFound
> ZooKeeperLeaderElectionTest.testEphemeralZooKeeperNodes:444 NoClassDefFound
> or...
> ZooKeeperLeaderElectionTest.testExceptionForwarding:372 NoClassDefFound
> org/ap...
> ZooKeeperLeaderElectionTest.testMultipleLeaders:291 NoClassDefFound
> org/apache...
> ZooKeeperLeaderElectionTest.testZooKeeperLeaderElectionRetrieval:94
> NoClassDefFound
> ZooKeeperLeaderElectionTest.testZooKeeperReelection:137 » NoClassDefFound
> org/...
> ZooKeeperLeaderElectionTest.testZooKeeperReelectionWithReplacement:207
> NoClassDefFound
>
> ZooKeeperLeaderRetrievalTest.testConnectingAddressRetrievalWithDelayedLeaderElection:96
> NoClassDefFound
> ZooKeeperLeaderRetrievalTest.testTimeoutOfFindConnectingAddress:187 »
> NoClassDefFound
> ZooKeeperUtilTest.testZooKeeperEnsembleConnectStringConfiguration:40
> NoClassDefFound
> {code}
> The issue is resolved when removing the curator excludes from
> {{flink-runtime/pom.xml}}:
> {code}
> <classpathDependencyExcludes>
>
> <classpathDependencyExclude>org.apache.curator:curator-recipes</classpathDependencyExclude>
>
> <classpathDependencyExclude>org.apache.curator:curator-client</classpathDependencyExclude>
>
> <classpathDependencyExclude>org.apache.curator:curator-framework</classpathDependencyExclude>
> </classpathDependencyExcludes>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)