[ 
https://issues.apache.org/jira/browse/FLINK-16266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flink Jira Bot updated FLINK-16266:
-----------------------------------
    Labels: auto-deprioritized-major stale-minor  (was: 
auto-deprioritized-major)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issues has been marked as 
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated 
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is 
still Minor, please either assign yourself or give an update. Afterwards, 
please remove the label or in 7 days the issue will be deprioritized.


> es6 & 7 table sql connector conflicts each other
> ------------------------------------------------
>
>                 Key: FLINK-16266
>                 URL: https://issues.apache.org/jira/browse/FLINK-16266
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / ElasticSearch
>    Affects Versions: 1.10.0
>            Reporter: Benchao Li
>            Priority: Minor
>              Labels: auto-deprioritized-major, stale-minor
>
> If we put {{flink-sql-connector-elasticsearch6}} and 
> {{flink-sql-connector-elasticsearch7}} into {{/lib}} at the same time, and 
> use it in {{sql-client}}, will get exceptions like:
>  
> {code:java}
> [ERROR] Could not execute SQL statement. Reason:
> java.lang.AbstractMethodError: 
> org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchUpsertTableSinkFactoryBase.createElasticsearchUpsertTableSink(ZLorg/apache/flink/table/api/TableSchema;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/apache/flink/api/common/serialization/SerializationSchema;Lorg/apache/flink/elasticsearch6/shaded/org/elasticsearch/common/xcontent/XContentType;Lorg/apache/flink/streaming/connectors/elasticsearch/ActionRequestFailureHandler;Ljava/util/Map;)Lorg/apache/flink/streaming/connectors/elasticsearch/ElasticsearchUpsertTableSinkBase;
> {code}
>  
> After analyzing the exceptions, IMO, it's because 
> {{flink-connector-elasticsearch-base}} is included into both 
> {{flink-sql-connector-elasticsearch6}} and 
> {{flink-sql-connector-elasticsearch7. And 
> }}{{flink-connector-elasticsearch-base}}{{ has different implementation in 6 
> & 7, because the version of elastic-search is different.}}
>  
> {{A simple way for fixing this is we can relocate 
> }}{{flink-connector-elasticsearch-base in 
> }}{{flink-sql-connector-elasticsearch6}}{{ and 
> }}{{flink-sql-connector-elasticsearch7. For example for 
> }}{{flink-sql-connector-elasticsearch7:}}
> {code:java}
> <relocation>
>    <pattern>org.apache.flink.streaming.connectors.elasticsearch.</pattern>
>    
> <shadedPattern>org.apache.flink.streaming.connectors.elasticsearch7.base.</shadedPattern>
> </relocation>
> {code}
> {{cc [~jark] [~twalthr] }}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to