Comments (14)
Hi @nmousouros,
I was waiting for a confirmation about the feature request.
Thanks for sharing the other connector link, it will help me during the development.
I think that now I can start the development.
from kafka-connect-elasticsearch-source.
Hi @DarioBalinzo ,
I think I have to ask my question precisely.
I am not talking about the SSL error while connecting to broker.
I am getting SSL error while connecting to Elasticsearch when the source connector makes connection to Elasticsearch, which is running over HTTPS.
So I am taking about ""es.scheme. If I use es.scheme-https then there is no provision to use truststore.
from kafka-connect-elasticsearch-source.
Hi,
please try configuring the port as integer and not as string:
changing
es.port = "9200"
to
es.port = 9200
from kafka-connect-elasticsearch-source.
After changing it to an integre, it gives me below error.
Elasticsearch instance is running well on given host and port and I can connect using CURL.
Is there any problem of HTTPS/HTTP?
My Elasticsearch is runnong over HTTPS. I am using HTTP scheme in connector config because I didnt find any SSL config options in documentation.
[2021-05-12 19:30:46,241] ERROR error in searching index names (com.github.dariobalinzo.elastic.ElasticRepository:105)
[2021-05-12 19:30:46,242] ERROR Stopping after connector error (org.apache.kafka.connect.cli.ConnectStandalone:121)
java.lang.RuntimeException: java.net.UnknownHostException: "myhost.uat.com": Name or service not known
at com.github.dariobalinzo.elastic.ElasticRepository.catIndices(ElasticRepository.java:106)
at com.github.dariobalinzo.ElasticSourceConnector.taskConfigs(ElasticSourceConnector.java:98)
at org.apache.kafka.connect.runtime.Worker.connectorTaskConfigs(Worker.java:319)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.recomputeTaskConfigs(StandaloneHerder.java:303)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.updateConnectorTasks(StandaloneHerder.java:329)
at org.apache.kafka.connect.runtime.standalone.StandaloneHerder.putConnectorConfig(StandaloneHerder.java:214)
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:115)
Caused by: java.net.UnknownHostException: "myhost.uat.com": Name or service not known
from kafka-connect-elasticsearch-source.
If you need to use https you can set this:
es.scheme = https
I will document better in the connector documentation
from kafka-connect-elasticsearch-source.
from kafka-connect-elasticsearch-source.
Looking at the description: UnknownHostException: "myhost.uat.com": Name or service not known
maybe the error is related to dns name resolution?
Can you connect using curl on the same machine where the connector is deployed?
from kafka-connect-elasticsearch-source.
from kafka-connect-elasticsearch-source.
Hi @DarioBalinzo
I found the problem of UnknonHostExcpetion.
Actually I am using configuration with key value pair separated with '='
It doesnt accept hostname in double quote. So removing double quote it makes http connection with Elasticsearch.
However, since elasticsearch running on HTTPS, connection get closed and it prints in the log that connetion is closed.
I can see in Elasticsearch logs that request came from remote host and its closed.
Then I set the es.scheme=https. Once I restart, it throws "PKIX path builfing error......... Unbale to find valid certification path"
Of-course it will throw this error because we didnt provide any valid root-ca or truststore.
Is it possible to configure truststore location, password and TLS protocol scheme?
regards,
Sunil.
from kafka-connect-elasticsearch-source.
Hi @DarioBalinzo ,
any setting to provide certification paths?
from kafka-connect-elasticsearch-source.
Hi @sunilmchaudhari ,
for the truststore I think you should look at the general kafka connect config, since they are not related to a single connector. Maybe you can find some info here or in the Kafka/Confluent documentation:
https://docs.confluent.io/platform/current/kafka/authentication_ssl.html#kconnect-long
from kafka-connect-elasticsearch-source.
It is possible to customize the settings related to https using the elasticsearch client.
I think that you need something similar to this: (e.g. the path of a custom truststore)
https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/_encrypted_communication.html
I will try to add this configuration to the connector in few days.
from kafka-connect-elasticsearch-source.
Hi @DarioBalinzo,
Any progress on that? We have the option indeed, to set those with the sink connector. ( https://github.com/ibm-messaging/kafka-connect-elastic-sink)
from kafka-connect-elasticsearch-source.
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.