Flow Producer -> Kafka(Avro) -> Flink Connector with Avro deseriser -> FLink -> ES@Service -- |
Your anonymous
ElasticsearchSinkFunction accesses the client variable that is
defined outside of the function.
For the function to be serializable, said Client must be as well. I suggest to turn your function into a named class with a constructor that accepts the indexName. On 27.03.2018 12:15, chandresh pancholi wrote:
|
Hi, Thank you for the response. I have made the suggested changes But now I am getting "Caused by: java.lang.NoClassDefFoundError: scala/Product$class"Caused by: java.lang.NoClassDefFoundError: scala/Product$class at akka.util.Timeout.<init>(Timeout.scala:13) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:328) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:683) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystem$.apply(ActorSystem.scala:245) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystem$.apply(ActorSystem.scala:288) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystem$.apply(ActorSystem.scala:263) ~[akka-actor_2.11-2.4.20.jar:na] at akka.actor.ActorSystem$.create(ActorSystem.scala:191) ~[akka-actor_2.11-2.4.20.jar:na] On Tue, Mar 27, 2018 at 3:54 PM, Chesnay Schepler <[hidden email]> wrote:
-- |
Free forum by Nabble | Edit this page |