saved me 4 days.
>
> Wendong
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2198.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2198.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at
Nabble.com.
>>>>>
>>>>> Thanks for the information. I'm using sbt and I have the following
>>>>> line in
>>>>> build.sbt:
>>>>>
>>>>> libraryDependencies += "org.apache.flink" % "flink-connector-kafka" %
>
gt; in
>>>> build.sbt:
>>>>
>>>> libraryDependencies += "org.apache.flink" % "flink-connector-kafka" %
>>>> "0.9.0" exclude("org.apache.kafka", "kafka_${scala.binary.version}")
>>>>
>
dencies += "org.apache.flink" % "flink-connector-kafka" %
>>> "0.9.0" exclude("org.apache.kafka", "kafka_${scala.binary.version}")
>>>
>>> Also, I copied flink-connector-kafka-0.9.0.jar under
>>> /lib/,
>>>
link-connector-kafka-0.9.0.jar under
>> /lib/,
>> but there is still ClassNotFoundException for KafkaSink.
>>
>> I appreciate it if you have any suggestion.
>>
>> Wendong
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2144.html
>> Sent from the Apache Flink User Mailing List archive. mailing list
>> archive at Nabble.com.
>>
>
>
tFoundException for KafkaSink.
>
> I appreciate it if you have any suggestion.
>
> Wendong
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2144.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
so, I copied flink-connector-kafka-0.9.0.jar under /lib/,
but there is still ClassNotFoundException for KafkaSink.
I appreciate it if you have any suggestion.
Wendong
--
View this message in context:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-t
java.net.URLClassLoader$1.run(URLClassLoader.java:366)
Any clue?
Thanks,
Wendong
--
View this message in context:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2143.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at
eStringSchema))
>> .addSink(new KafkaSink[String]("localhost:2181", "test", new
>> SimpleStringSchema))
>>
>> Anything wrong? I already did "import
>> org.apache.flink.streaming.connectors.kafka.api._". Class
>> SimpleStringSchema
&
.addSink(new KafkaSink[String]("localhost:2181", "test", new
> SimpleStringSchema))
>
> Anything wrong? I already did "import
> org.apache.flink.streaming.connectors.kafka.api._". Class
> SimpleStringSchema
> was modified (see previous post).
>
&g
"test", new
SimpleStringSchema))
Anything wrong? I already did "import
org.apache.flink.streaming.connectors.kafka.api._". Class SimpleStringSchema
was modified (see previous post).
Thanks,
Wendong
--
View this message in context:
http://apache-flink-user-mailing-list-archive.
context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2109.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
message in context:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2109.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at
Nabble.com.
tream.DataStreamSink.copy(DataStreamSink.java:30)
>> at
>>
>> org.apache.flink.streaming.api.datastream.DataStream.addSink(DataStream.java:1341)
>> at
>>
>> org.apache.flink.streaming.api.datastream.DataStream.print(DataStream.java:1029)
>> .
message but didn't find useful information.
>
> Anyone can shed some light?
>
> Thanks!
>
> Wendong
>
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069p2071.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
Flink-Kafka-example-in-Scala-tp2069p2071.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at
Nabble.com.
est", new
> SimpleStringSchema))
>
> I changed SimpleStringSchema to SerializationSchema which still doesn't
> work.
>
> I am trying to transit from Spark to Flink, but the samples in Flink are
> far
> less than those in Spark. It would be very helpful if there is an example
> of
> KafkaWordCount in Scala similar to that in Spark.
>
> Thanks,
>
> Wendong
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
trying to transit from Spark to Flink, but the samples in Flink are far
less than those in Spark. It would be very helpful if there is an example of
KafkaWordCount in Scala similar to that in Spark.
Thanks,
Wendong
--
View this message in context:
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Flink-Kafka-example-in-Scala-tp2069.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at
Nabble.com.
19 matches
Mail list logo