[ https://issues.apache.org/jira/browse/FLINK-34663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17826883#comment-17826883 ]
wael shehata commented on FLINK-34663: -------------------------------------- knowing that after building the codebase ([GitHub - apache/flink-connector-opensearch: Apache flink|https://github.com/apache/flink-connector-opensearch]) project using maven ( ./mvn clean package -DskipTests )... 8-jars are created with the following names: !image-2024-03-14-00-10-40-982.png|width=380,height=250! and when using these jars (supposedly are the ones for "opensearch-v2" ) i got the problem as mentioned above .. and if i changed flink version (to 1.8.1) and opensearch version (to 2.12.0) .. the project wont built and give an error of missing many classes that are no longer exist in the new versions ... How then to get or build "opensearch-v2" flink connector ? warm regards > flink-opensearch connector Unable to parse response body for Response > --------------------------------------------------------------------- > > Key: FLINK-34663 > URL: https://issues.apache.org/jira/browse/FLINK-34663 > Project: Flink > Issue Type: Bug > Components: Connectors / Opensearch > Affects Versions: 1.18.1 > Environment: Docker-Compose: > Flink 1.18.1 - Java11 > OpenSearch 2.12.0 > Flink-Sql-Opensearch-connector (flink 1.18.1 → Os 1.3) > Reporter: wael shehata > Priority: Major > Attachments: image-2024-03-14-00-10-40-982.png > > > I`m trying to use flink-sql-opensearch connector to sink stream data to > OpenSearch via Flink … > After submitting the Job to Flink cluster successfully , the job runs > normally for 30sec and create the index with data … then it fails with the > following message: > _*org.apache.flink.util.FlinkRuntimeException: Complete bulk has failed… > Caused by: java.io.IOException: Unable to parse response body for Response*_ > _*{requestLine=POST /_bulk?timeout=1m HTTP/1.1, > host=[http://172.20.0.6:9200|http://172.20.0.6:9200/], response=HTTP/1.1 200 > OK}*_ > at > org.opensearch.client.RestHighLevelClient$1.onSuccess(RestHighLevelClient.java:1942) > at > org.opensearch.client.RestClient$FailureTrackingResponseListener.onSuccess(RestClient.java:662) > at org.opensearch.client.RestClient$1.completed(RestClient.java:396) > at org.opensearch.client.RestClient$1.completed(RestClient.java:390) > at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:122) > at > org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:182) > at > org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:448) > at > org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:338) > at > org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265) > at > org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:87) > at > org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:40) > at > org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114) > at > org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) > at > org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) > at > org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) > at > org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) > at > org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) > at > org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591) > … 1 more > *Caused by: java.lang.NullPointerException* > *at java.base/java.util.Objects.requireNonNull(Unknown Source)* > *at org.opensearch.action.DocWriteResponse.(DocWriteResponse.java:140)* > *at org.opensearch.action.index.IndexResponse.(IndexResponse.java:67) …* > It seems that this error is common but without any solution … > the flink connector despite it was built for OpenSearch 1.3 , but it still > working in sending and creating index to OpenSearch 2.12.0 … but this error > persists with all OpenSearch versions greater than 1.13 … > *Opensearch support reply was:* > *"this is unexpected, could you please create an issue here [1], the issue is > caused by _type property that has been removed in 2.x"* -- This message was sent by Atlassian Jira (v8.20.10#820010)