Re: Elasticsink sometimes gives NoClassDefFoundError

2020-01-10 Thread Arvid Heise
I don't see a particular reason why you see this behavior. Chesnay's explanation is the only plausible way that this behavior can happen. I fear that without a specific log, we cannot help further. On Fri, Jan 10, 2020 at 5:06 AM Jayant Ameta wrote: > Also, the ES version I'm using is 5.6.7 > >

Re: Elasticsink sometimes gives NoClassDefFoundError

2020-01-09 Thread Jayant Ameta
Also, the ES version I'm using is 5.6.7 Jayant On Thu, Jan 9, 2020 at 10:39 AM Jayant Ameta wrote: > Hi, > The elastic connector is packaged in the uber jar that is submitted. There > is only 1 version of the connector: > flink-connector-elasticsearch5_2.11:1.7.1 > I'm using Flink 1.7.1 > > I

Re: Elasticsink sometimes gives NoClassDefFoundError

2020-01-08 Thread Jayant Ameta
Hi, The elastic connector is packaged in the uber jar that is submitted. There is only 1 version of the connector: flink-connector-elasticsearch5_2.11:1.7.1 I'm using Flink 1.7.1 I couldn't figure out whether this error causes the job to fail, or whether I see this error when the job is restarting

Re: Elasticsink sometimes gives NoClassDefFoundError

2020-01-08 Thread Arvid Heise
Hi Jayant, if you only see it sometimes that indicates that you have it in two different versions of the connectors where class loader order is non-deterministic. Could you post the classpath? Btw, it's always good to add which Flink version you use. Best, Arvid On Wed, Jan 8, 2020 at 12:20 PM

Re: Elasticsink sometimes gives NoClassDefFoundError

2020-01-08 Thread Chesnay Schepler
Could you clarify under what circumstances you see this issue? You say "sometimes"; is the job running normally and then failing due to this error? Does it happen when submitting/canceling/restarting a job etc. On 08/01/2020 12:20, Jayant Ameta wrote: Hi, I see the following error sometimesĀ on

Elasticsink sometimes gives NoClassDefFoundError

2020-01-08 Thread Jayant Ameta
Hi, I see the following error sometimes on my flink job, even though the class is present in my uber jar. java.lang.NoClassDefFoundError: org/apache/flink/streaming/connectors/elasticsearch5/shaded/org/jboss/netty/channel/socket/nio/NioClientSocketPipelineSink$1 at org.apache.flink.streaming.conne