[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flink 1.7 doesn't work with Kafka Table Source Descriptors

Hi Cheng,

Thanks for your reply will try out and update you on this.


On Sat, 22 Dec 2018, 20:41 Hequn Cheng <chenghequn@xxxxxxxxx wrote:
Hi dhanuka,

I failed to reproduce your error with release-1.7.0. It seems Kafka.toConnectorProperties() should be called instead of ConnectorDescriptor.toConnectorProperties(), the latter one is an abstract class, which lead to the AbstractMethodError.

From the picture uploaded, it is strange that the jar of 1.6.1 is mixed with the jar of 1.7.0. It may result in class conflict problem. 
Furthermore, set flink dependency scope to provided, so that classes of flink will not be packaged into the user jar. It will also cause class conflict problem.


On Fri, Dec 21, 2018 at 6:24 PM dhanuka ranasinghe <dhanuka.priyanath@xxxxxxxxx> wrote:
Add Dev Group

On Fri, Dec 21, 2018 at 6:21 PM dhanuka ranasinghe <dhanuka.priyanath@xxxxxxxxx> wrote:
Hi All,

I have tried to read data from Kafka from Flink using Table API. It's working fine with Flink 1.4 but when upgrade to 1.7 given me below error. I have attached the libraries added to Flink.

Could you please help me on this.

bin/flink run stream-analytics-0.0.1-SNAPSHOT.jar --read-topic testin --write-topic testout --bootstrap.servers localhost analytics
Starting execution of program
java.lang.AbstractMethodError: org.apache.flink.table.descriptors.ConnectorDescriptor.toConnectorProperties()Ljava/util/Map;
    at org.apache.flink.table.descriptors.ConnectorDescriptor.toProperties(
    at org.apache.flink.table.descriptors.ConnectTableDescriptor.toProperties(ConnectTableDescriptor.scala:107)
    at org.apache.flink.table.descriptors.StreamTableDescriptor.toProperties(StreamTableDescriptor.scala:95)
    at org.apache.flink.table.factories.TableFactoryUtil$.findAndCreateTableSource(TableFactoryUtil.scala:39)
    at org.apache.flink.table.descriptors.ConnectTableDescriptor.registerTableSource(ConnectTableDescriptor.scala:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.flink.client.program.PackagedProgram.callMainMethod(
    at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(
    at org.apache.flink.client.cli.CliFrontend.executeProgram(
    at org.apache.flink.client.cli.CliFrontend.runProgram(
    at org.apache.flink.client.cli.CliFrontend.parseParameters(
    at org.apache.flink.client.cli.CliFrontend.lambda$main$11(
    at Method)
    at org.apache.flink.client.cli.CliFrontend.main(


Nothing Impossible,Creativity is more important than knowledge.

Nothing Impossible,Creativity is more important than knowledge.