java - NoSuchMethodError in Elasticsearch5.x flink connector -


i'm facing problem while running flink program, here error:

java.lang.nosuchmethoderror: io.netty.buffer.compositebytebuf.addcomponents(zljava/lang/iterable;)lio/netty/buffer/compositebytebuf;     @ org.elasticsearch.transport.netty4.netty4utils.tobytebuf(netty4utils.java:78)     @ org.elasticsearch.transport.netty4.netty4transport.sendmessage(netty4transport.java:449)     @ org.elasticsearch.transport.netty4.netty4transport.sendmessage(netty4transport.java:91)     @ org.elasticsearch.transport.tcptransport$scheduledping.doruninlifecycle(tcptransport.java:261)     @ org.elasticsearch.common.util.concurrent.abstractlifecyclerunnable.dorun(abstractlifecyclerunnable.java:67)     @ org.elasticsearch.common.util.concurrent.threadcontext$contextpreservingabstractrunnable.dorun(threadcontext.java:527)     @ org.elasticsearch.common.util.concurrent.abstractrunnable.run(abstractrunnable.java:37)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)     @ java.lang.thread.run(thread.java:748) 

i looked on , find had same problem, , suggestion shade netty , included pom:

here added:

<build>                 <plugins>                     <!-- disable exclusion rules -->                     <plugin>                         <groupid>org.apache.maven.plugins</groupid>                         <artifactid>maven-shade-plugin</artifactid>                         <version>2.4.1</version>                         <executions>                             <execution>                                 <phase>package</phase>                                 <goals>                                     <goal>shade</goal>                                 </goals>                                 <configuration>                                     <artifactset>                                         <excludes combine.self="override">                                              <exclude>io.netty:netty-all</exclude>                                             <exclude>io.netty:netty</exclude>                                          </excludes>                                     </artifactset>                                 </configuration>                             </execution>                         </executions>                     </plugin>                 </plugins>             </build>         </profile>     </profiles> 

but problem still persisting. if have idea, please share me, thanks.

probably version problem. library inside library add overrides yet library. mean: have 2 dependency in pom:a , b.dependency has different version of b overrides library b added pom.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -