Thank you for posting the full SBT files.

I now understand why you exclude the kafka dependency from Flink. SBT does
not support to read maven properties only defined in profiles.
I will fix the issue for Flink 0.10 (
https://issues.apache.org/jira/browse/FLINK-2408)


I was not able to reproduce the issue locally.
What I did:
- "sbt assembly"
 --> which
created 
/home/robert/Downloads/flink-sbt-master/target/scala-2.10/sbt-0.13/flink-sbt-with-assembly-assembly-1.0.jar

- " ./bin/start-local.sh"
- "./bin/flink run -c org.myorg.quickstart.Job
/home/robert/Downloads/flink-sbt-master/target/scala-2.10/sbt-0.13/flink-sbt-with-assembly-assembly-1.0.jar
"

--> no errors.


On Sat, Jul 25, 2015 at 3:10 AM, Wendong <wendong....@gmail.com> wrote:

> Below is the build.sbt I am using (also include project/assembly.sbt) :
>
> //------------- Start build.sbt ---------------------------
>
> version := "1.0"
>
> scalaVersion := "2.10.4"
>
> libraryDependencies ++= Seq("org.apache.flink" % "flink-scala" % "0.9.0",
> "org.apache.flink" % "flink-clients" % "0.9.0")
>
> libraryDependencies += "org.apache.kafka" %% "kafka" % "0.8.2.1"
>
> libraryDependencies += "org.apache.flink" % "flink-streaming-scala" %
> "0.9.0"
>
> libraryDependencies += "org.apache.flink" % "flink-connector-kafka" %
> "0.9.0" exclude("org.apache.kafka", "kafka_${scala.binary.version}")
>
> libraryDependencies += "com.101tec" % "zkclient" % "0.3"
>
> // META-INF discarding
> mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
>    {
>     case PathList("META-INF", xs @ _*) => MergeStrategy.discard
>     case x => MergeStrategy.first
>    }
> }
>
> //------------- End build.sbt ---------------------------
>
> //--------- Start project/assembly.sbt --------------
>
> addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.12.0")
>
> //--------- End project/assembly.sbt --------------
>
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-cannot-find-org-I0Itec-zkclient-serialize-ZkSerializer-tp2199p2271.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>

Reply via email to