Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible with versions 5, 6 and 7 with es restclient #66

Open
wants to merge 2 commits into
base: 0.5.0
Choose a base branch
from
Open

Compatible with versions 5, 6 and 7 with es restclient #66

wants to merge 2 commits into from

Conversation

dlimeng
Copy link
Contributor

@dlimeng dlimeng commented Jan 3, 2021

Because the company's toB orientation is customer-oriented, and it needs to be compatible with multiple es versions, it has used this method to insert data in batches with RestClient, which has been used internally.

  1. Plugin.json under datax-elasticsearchwriter component ,class is modified to "com.webank.wedisphere.exchangeis.datax.plugin.writer.elasticsearchwriter.v6.elasticrestwriter"

  2. Under libs, add jackson-annotations-2.10.2.jar and Jackson-databind-2.10.2.jar.
    This method addresses issues Exchangis es version problem #56.

因为公司toB方向,面向客户多,需要兼容多种es版本,用RestClient批量插入数据,已经运用此方法在内部使用。
1.datax-elasticsearchwriter 组件下的plugin.json class 修改成“com.webank.wedatasphere.exchangis.datax.plugin.writer.elasticsearchwriter.v6.ElasticRestWriter”

2.该组件下libs ,添加jackson-annotations-2.10.2.jar和jackson-databind-2.10.2.jar
此方法针对提了issues #56

FinalTarget pushed a commit that referenced this pull request Feb 25, 2022
@jefftlin jefftlin changed the title 用es restclient 兼容 5,6,7版本 Compatible with versions 5, 6 and 7 with es restclient May 28, 2022
@jefftlin jefftlin added this to Done in Exchangis1.0.0 Jun 14, 2022
@jefftlin jefftlin removed this from Done in Exchangis1.0.0 Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant