Comments (6)
Ok, so it seems similar to this issue elastic/elasticsearch#28923
(If you look to the last answer)
I will put the fix using the correct prefix in version 1.2.
from kafka-connect-elasticsearch-source.
Hi @albertwgchu ,
I will try to reproduce the error locally with an integration test.
I've read about a similar issue here https://www.google.com/url?sa=t&source=web&rct=j&url=https://discuss.elastic.co/t/resolved-400-error-responseexception-when-using-example-request-code-for-java-rest-client/98445&ved=2ahUKEwiSlOzs9N_tAhVZPuwKHa3dBLgQFjAAegQIBxAC&usg=AOvVaw32nxEd1oo2s_PGGK2JXc6i
I will check in few days if the issue is similar.
from kafka-connect-elasticsearch-source.
@DarioBalinzo Thanks for responding so quickly. I'll take a look as well, I'm curious why https://github.com/inspectorioinc/kafka-connect-elasticsearch-source works with my instance of ES and not yours. I should also mention I am using ES 6.8.
Thanks again.
from kafka-connect-elasticsearch-source.
@DarioBalinzo weird, so if I change this it works:
--- a/src/main/java/com/github/dariobalinzo/elastic/ElasticRepository.java
+++ b/src/main/java/com/github/dariobalinzo/elastic/ElasticRepository.java
@@ -100,7 +100,7 @@ public final class ElasticRepository {
try {
resp = elasticConnection.getClient()
.getLowLevelClient()
-
.performRequest("GET", "_cat/indices");
-
.performRequest("GET", "/_cat/indices"); } catch (IOException e) { logger.error("error in searching index names"); throw new RuntimeException(e);
from kafka-connect-elasticsearch-source.
Hi @albertwgchu , thanks for sharing the details.
What kind of environment are you using? (local cluster, docker or aws?)
I don't understand your change in the ElasticRepository, it seems identical to me. Can you share the diff or maybe submit a simple PR?
I'm planning to look into this in the next days, but having more info and context will help me in solving this issue.
Thanks
from kafka-connect-elasticsearch-source.
Hi @DarioBalinzo,
It's the forward slash before cat.
.performRequest("GET", "_cat/indices"); // this doesn't work
.performRequest("GET", "/_cat/indices"); // this works
I'm using Docker cp all in one for Kafka and Elastic Cloud for Elastic Search.
Thanks.
from kafka-connect-elasticsearch-source.
Related Issues (20)
- Authentication Methods
- Question: Filtering fields of elastic document.
- question: keystore and truststore file formats
- Avro parsing error StringIndexOutOfBoundsException HOT 1
- Index Prefix is not working as intended, it is copying all the indices
- org.apache.kafka.connect.errors.DataException: xxx is not a valid field name
- Connector failed to run
- The connector starts but fails to connect to OpenSearch nodes
- Update dependencies
- How to disable schema Avro? HOT 1
- Caused by: org.apache.http.ContentTooLongException: entity content is too long [107962506] for the configured buffer limit [104857600] HOT 5
- How to use queries to poll only certain documents into the Kafka Topic? HOT 3
- Now that ElasticSourceConnector is working, how to consume messages using Java from Kafka Topic? HOT 5
- converting list: type not supported HOT 3
- Can I limit the bandwidth of data obtained from ES? HOT 2
- Replay data which already exist on elastic HOT 1
- Connector Vulnerabilities HOT 3
- Connector Vulnerabilities HOT 6
- org.apache.kafka.connect.errors.DataException: Invalid type for INT64: class java.lang.Double HOT 3
- number of tasks, their state and relation to the connector state HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-connect-elasticsearch-source.