Compatible with versions 5, 6 and 7 with es restclient #66
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Plugin.json under datax-elasticsearchwriter component ,class is modified to "com.webank.wedisphere.exchangeis.datax.plugin.writer.elasticsearchwriter.v6.elasticrestwriter"
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