[ 
https://issues.apache.org/jira/browse/FLINK-13025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16876034#comment-16876034
 ] 

vinoyang commented on FLINK-13025:
----------------------------------

Hi [~aljoscha] I have tested. Unfortunately, the API is not compatible. I got 
several compile errors when I changed the version of elasticsearch relevant 
dependencies to 7.2.0. The compile error logs:

 
{code:java}
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6ApiCallBridge.java:[81,31]
 method ping in class org.elasticsearch.client.RestHighLevelClient cannot be 
applied to given types;
required: org.elasticsearch.client.RequestOptions
found: no arguments
reason: actual and formal argument lists differ in length
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6ApiCallBridge.java:[94,37]
 no suitable method found for 
builder(client::bulkAsync,org.elasticsearch.action.bulk.BulkProcessor.Listener)
method 
org.elasticsearch.action.bulk.BulkProcessor.builder(org.elasticsearch.client.Client,org.elasticsearch.action.bulk.BulkProcessor.Listener)
 is not applicable
(argument mismatch; org.elasticsearch.client.Client is not a functional 
interface
multiple non-overriding abstract methods found in interface 
org.elasticsearch.client.Client)
method 
org.elasticsearch.action.bulk.BulkProcessor.builder(java.util.function.BiConsumer<org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>>,org.elasticsearch.action.bulk.BulkProcessor.Listener)
 is not applicable
(argument mismatch; invalid method reference
method bulkAsync in class org.elasticsearch.client.RestHighLevelClient cannot 
be applied to given types
required: 
org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.client.RequestOptions,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>
found: 
org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>
reason: actual and formal argument lists differ in length)
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6UpsertTableSink.java:[209,50]
 cannot find symbol
symbol: method setMaxRetryTimeoutMillis(java.lang.Integer)
location: variable restClientBuilder of type 
org.elasticsearch.client.RestClientBuilder
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.676 s
[INFO] Finished at: 2019-07-01T17:02:23+08:00
[INFO] Final Memory: 52M/485M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) 
on project flink-connector-elasticsearch6_2.11: Compilation failure: 
Compilation failure:
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6ApiCallBridge.java:[81,31]
 method ping in class org.elasticsearch.client.RestHighLevelClient cannot be 
applied to given types;
[ERROR] required: org.elasticsearch.client.RequestOptions
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6ApiCallBridge.java:[94,37]
 no suitable method found for 
builder(client::bulkAsync,org.elasticsearch.action.bulk.BulkProcessor.Listener)
[ERROR] method 
org.elasticsearch.action.bulk.BulkProcessor.builder(org.elasticsearch.client.Client,org.elasticsearch.action.bulk.BulkProcessor.Listener)
 is not applicable
[ERROR] (argument mismatch; org.elasticsearch.client.Client is not a functional 
interface
[ERROR] multiple non-overriding abstract methods found in interface 
org.elasticsearch.client.Client)
[ERROR] method 
org.elasticsearch.action.bulk.BulkProcessor.builder(java.util.function.BiConsumer<org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>>,org.elasticsearch.action.bulk.BulkProcessor.Listener)
 is not applicable
[ERROR] (argument mismatch; invalid method reference
[ERROR] method bulkAsync in class org.elasticsearch.client.RestHighLevelClient 
cannot be applied to given types
[ERROR] required: 
org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.client.RequestOptions,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>
[ERROR] found: 
org.elasticsearch.action.bulk.BulkRequest,org.elasticsearch.action.ActionListener<org.elasticsearch.action.bulk.BulkResponse>
[ERROR] reason: actual and formal argument lists differ in length)
[ERROR] 
/Users/vinoyang/Documents/project/forkflink/flink/flink-connectors/flink-connector-elasticsearch6/src/main/java/org/apache/flink/streaming/connectors/elasticsearch6/Elasticsearch6UpsertTableSink.java:[209,50]
 cannot find symbol
[ERROR] symbol: method setMaxRetryTimeoutMillis(java.lang.Integer)
[ERROR] location: variable restClientBuilder of type 
org.elasticsearch.client.RestClientBuilder
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{code}
So maybe we need a new connector for elasticsearch 7.x? 

> Elasticsearch 7.x support
> -------------------------
>
>                 Key: FLINK-13025
>                 URL: https://issues.apache.org/jira/browse/FLINK-13025
>             Project: Flink
>          Issue Type: New Feature
>          Components: Connectors / ElasticSearch
>    Affects Versions: 1.8.0
>            Reporter: Keegan Standifer
>            Priority: Major
>
> Elasticsearch 7.0.0 was released in April of 2019: 
> [https://www.elastic.co/blog/elasticsearch-7-0-0-released]
> The latest elasticsearch connector is 
> [flink-connector-elasticsearch6|https://github.com/apache/flink/tree/master/flink-connectors/flink-connector-elasticsearch6]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to