alibaba / alibaba/DataX

当给es添加证书后 datax同步出现错误

Open
#1,652 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

经DataX智能分析,该任务最可能的错误原因是:
com.alibaba.datax.common.exception.DataXException: Code:[ESWriter-03], Description:[mappings错误.]. - javax.net.ssl.SSLPeerUnverifiedException: Host name '10.10.20.64' does not match the certificate subject provided by the peer (CN=instance)
at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26)
at com.alibaba.datax.plugin.writer.elasticsearchwriter.ESWriter$Job.prepare(ESWriter.java:76)
at com.alibaba.datax.core.job.JobContainer.prepareJobWriter(JobContainer.java:724)
at com.alibaba.datax.core.job.JobContainer.prepare(JobContainer.java:309)
at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:115)
at com.alibaba.datax.core.Engine.start(Engine.java:92)
at com.alibaba.datax.core.Engine.entry(Engine.java:171)
at com.alibaba.datax.core.Engine.main(Engine.java:204)

我已经将生成的证书 添加到jdk的认证里面了 但是还是有错误 。 问下我单机 docker安装的es ,data与es都是装在一台机器上 还需要什么样的配置 才能成功?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with plugin/writer/elasticsearchwriter/ESWriter.java at the reported prepare call, then trace the Elasticsearch writer's certificate and hostname configuration. Compare the certificate subject with the host used by DataX and verify the JDK trust configuration; done means the single-node Docker Elasticsearch synchronization completes without SSLPeerUnverifiedException.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.