[
https://issues.apache.org/jira/browse/FLINK-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492897#comment-14492897
]
Robert Metzger commented on FLINK-1829:
---------------------------------------
I was not able to reproduce the issue.
This is the code I used to test it:
https://github.com/rmetzger/flink/tree/alex_dependencies
This is my dependency tree
{code}
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ quickstart ---
[INFO] org.myorg.quickstart:quickstart:jar:0.1
[INFO] +- org.apache.flink:flink-java:jar:0.9-SNAPSHOT:compile
[INFO] | +- org.apache.flink:flink-core:jar:0.9-SNAPSHOT:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | +- org.apache.flink:flink-shaded-include-yarn:jar:0.9-SNAPSHOT:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.6:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | | +- org.xerial.snappy:snappy-java:jar:1.0.5:compile
[INFO] | | \- org.apache.commons:commons-compress:jar:1.4.1:compile
[INFO] | | \- org.tukaani:xz:jar:1.0:compile
[INFO] | +- com.esotericsoftware.kryo:kryo:jar:2.24.0:compile
[INFO] | | +- com.esotericsoftware.minlog:minlog:jar:1.2:compile
[INFO] | | \- org.objenesis:objenesis:jar:2.1:compile
[INFO] | +- com.twitter:chill_2.10:jar:0.5.2:compile
[INFO] | | \- com.twitter:chill-java:jar:0.5.2:compile
[INFO] | +- com.twitter:chill-avro_2.10:jar:0.5.2:compile
[INFO] | | +- com.twitter:chill-bijection_2.10:jar:0.5.2:compile
[INFO] | | | \- com.twitter:bijection-core_2.10:jar:0.7.2:compile
[INFO] | | \- com.twitter:bijection-avro_2.10:jar:0.7.2:compile
[INFO] | +- com.twitter:chill-protobuf:jar:0.5.2:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | +- com.twitter:chill-thrift:jar:0.5.2:compile
[INFO] | +- org.apache.thrift:libthrift:jar:0.6.1:compile
[INFO] | | +- commons-lang:commons-lang:jar:2.5:compile
[INFO] | | \- junit:junit:jar:4.4:compile
[INFO] | +- de.javakaffee:kryo-serializers:jar:0.27:compile
[INFO] | +- joda-time:joda-time:jar:2.5:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.7:compile
[INFO] | \- log4j:log4j:jar:1.2.17:compile
[INFO] +- org.apache.flink:flink-scala:jar:0.9-SNAPSHOT:compile
[INFO] | +- org.apache.flink:flink-optimizer:jar:0.9-SNAPSHOT:compile
[INFO] | +- org.scala-lang:scala-reflect:jar:2.10.4:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.10.4:compile
[INFO] | +- org.scala-lang:scala-compiler:jar:2.10.4:compile
[INFO] | \- org.scalamacros:quasiquotes_2.10:jar:2.0.1:compile
[INFO] \- org.apache.flink:flink-clients:jar:0.9-SNAPSHOT:compile
[INFO] +- org.apache.flink:flink-runtime:jar:0.9-SNAPSHOT:compile
[INFO] | +- com.amazonaws:aws-java-sdk:jar:1.8.1:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.2:compile
[INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.2:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.1.1:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.1.1:compile
[INFO] | | \-
com.fasterxml.jackson.core:jackson-annotations:jar:2.1.1:compile
[INFO] | +- io.netty:netty-all:jar:4.0.26.Final:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | +- com.typesafe.akka:akka-actor_2.10:jar:2.3.7:compile
[INFO] | | \- com.typesafe:config:jar:1.2.1:compile
[INFO] | +- com.typesafe.akka:akka-remote_2.10:jar:2.3.7:compile
[INFO] | | +- io.netty:netty:jar:3.8.0.Final:compile
[INFO] | | \- org.uncommons.maths:uncommons-maths:jar:1.2.2a:compile
[INFO] | +- com.typesafe.akka:akka-slf4j_2.10:jar:2.3.7:compile
[INFO] | +- com.github.scopt:scopt_2.10:jar:3.2.0:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.0:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.1.0:compile
[INFO] | \- io.dropwizard.metrics:metrics-json:jar:3.1.0:compile
[INFO] +- org.eclipse.jetty:jetty-server:jar:8.0.0.M1:compile
[INFO] | +- org.mortbay.jetty:servlet-api:jar:3.0.20100224:compile
[INFO] | +- org.eclipse.jetty:jetty-continuation:jar:8.0.0.M1:compile
[INFO] | \- org.eclipse.jetty:jetty-http:jar:8.0.0.M1:compile
[INFO] | \- org.eclipse.jetty:jetty-io:jar:8.0.0.M1:compile
[INFO] | \- org.eclipse.jetty:jetty-util:jar:8.0.0.M1:compile
[INFO] +- org.eclipse.jetty:jetty-security:jar:8.0.0.M1:compile
[INFO] +- org.eclipse.jetty:jetty-servlet:jar:8.0.0.M1:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
[INFO] +- commons-io:commons-io:jar:2.4:compile
[INFO] \- commons-cli:commons-cli:jar:1.2:compile
{code}
It doesn't contain any HBase.
> Conflicting Jackson version in the Flink POMs
> ---------------------------------------------
>
> Key: FLINK-1829
> URL: https://issues.apache.org/jira/browse/FLINK-1829
> Project: Flink
> Issue Type: Bug
> Components: Build System
> Affects Versions: 0.9
> Reporter: Alexander Alexandrov
> Assignee: Robert Metzger
> Fix For: 0.9
>
>
> The current POM setup transitively includes multiple conflicting versions of
> the Jackson library over
> * {{com.amazonaws:aws-java-sdk}} (v. 2.1.1)
> * {{org.apache.avro:avro}} (v. 1.9.13)
> * {{org.apache.hbase:hbase-client}} (v. 1.8.8)
> When running jobs against a Flink local runtime embedded with:
> {code:xml}
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-scala</artifactId>
> <version>${flink.version}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-java</artifactId>
> <version>${flink.version}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.flink</groupId>
> <artifactId>flink-clients</artifactId>
> <version>${flink.version}</version>
> <scope>provided</scope>
> </dependency>
> {code}
> I get the following error:
> {noformat}
> 15-04-04 15:52:04 ERROR exception during creation
> akka.actor.ActorInitializationException: exception during creation
> at akka.actor.ActorInitializationException$.apply(Actor.scala:164)
> at akka.actor.ActorCell.create(ActorCell.scala:596)
> at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
> at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
> at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:279)
> at akka.dispatch.Mailbox.run(Mailbox.scala:220)
> at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
> at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> at
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
> at
> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> at
> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at akka.util.Reflect$.instantiate(Reflect.scala:66)
> at akka.actor.ArgsReflectConstructor.produce(Props.scala:352)
> at akka.actor.Props.newActor(Props.scala:252)
> at akka.actor.ActorCell.newActor(ActorCell.scala:552)
> at akka.actor.ActorCell.create(ActorCell.scala:578)
> ... 9 more
> Caused by: java.lang.NoSuchMethodError:
> com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
> at
> com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:445)
> at
> com.fasterxml.jackson.databind.ObjectMapper.<init>(ObjectMapper.java:366)
> at
> org.apache.flink.runtime.taskmanager.TaskManager.<init>(TaskManager.scala:134)
> ... 18 more
> {noformat}
> Fixing the Jackson version on the client side, e.g, with the following snippet
> {code:xml}
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-core</artifactId>
> <version>2.2.1</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-databind</artifactId>
> <version>2.2.1</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-annotations</artifactId>
> <version>2.2.1</version>
> <scope>provided</scope>
> </dependency>
> {code}
> solves the problem, but I guess it will be better if we can stick with one
> version in the build artifacts.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)