-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature][Connector-V2][Elasticsearch] Support Elasticsearch source #2821
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a96b361
[Feature][Connector-V2]improve elasticseach connector directory struc…
c7050d7
[Feature][Connector-V2]new connector of Elasticsearch source(#2553)
66f9ad9
[Feature][Connector-V2]improve elasticseach connector directory struc…
b6688c2
[Feature][Connector-V2]new connector of Elasticsearch source(#2553)
a8f96fe
Merge branch 'dev-20220919' of github.com:iture123/incubator-seatunne…
3e4538e
Merge branch 'dev' of github.com:iture123/incubator-seatunnel into de…
c878685
[Feature][Connector-V2]resolve conflict(#2553)
5cba46f
[Feature][Connector-V2]remove checkstyle:MagicNumber(#2553)
83e288b
[Feature][Connector-V2]use lombok to simple code(#2553)
c70f2af
[Feature][Connector-V2]add 'synchronized (output.getCheckpointLock())…
5a02fc9
[Feature][Connector-V2][Elasticsearce]simplify Config.class path(#2553)
ad71a2a
[Feature][Connector-V2][Elasticsearce]improve elasticsearch record de…
d39c5cb
[Feature][Connector-V2][Elasticsearce]EsRestClient#getFieldTypeMappin…
ed2ba50
[Feature][Connector-V2][Elasticsearce]improve restore split(#2553)
a184fac
[Feature][Connector-V2][Elasticsearce]improve Elasticsearc.md(#2553)
dbb44ad
[Feature][Connector-V2][Elasticsearce]fix NPP when ES version <= 6.x(…
62f299f
[Feature][Connector-V2][Elasticsearce]improve elasticsearch source(#2…
d6f9282
Merge branch 'dev' of github.com:iture123/incubator-seatunnel into de…
4a3b560
[Feature][Connector-V2][Elasticsearce]fix jackson conflict in spark a…
388226b
[Feature][Connector-V2][Elasticsearce]pom.xml remove dependency seatu…
d53b879
[Feature][Connector-V2][Elasticsearce]improve ElasticsearchSinkWriter…
b51b058
[Feature][Connector-V2][Elasticsearce]improve ElasticsearchSinkWriter…
b6c318d
[Feature][Connector-V2][Elasticsearce]improve ElasticsearchIT
6eb559f
[Feature][Connector-V2][Elasticsearce]improve ElasticsearchSourceReader
0ccdca0
[Feature][Connector-V2][Elasticsearce]improve ElasticsearchSourceSpli…
4232854
[Feature][Connector-V2][Elasticsearce]ElasticsearchSourceSplit use lo…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Elasticsearch | ||
|
||
> Elasticsearch source connector | ||
|
||
## Description | ||
|
||
Used to read data from Elasticsearch. | ||
|
||
support version >= 2.x and < 8.x. | ||
|
||
## Key features | ||
|
||
- [x] [batch](../../concept/connector-v2-features.md) | ||
- [ ] [stream](../../concept/connector-v2-features.md) | ||
- [ ] [exactly-once](../../concept/connector-v2-features.md) | ||
- [x] [schema projection](../../concept/connector-v2-features.md) | ||
- [ ] [parallelism](../../concept/connector-v2-features.md) | ||
- [ ] [support user-defined split](../../concept/connector-v2-features.md) | ||
|
||
## Options | ||
|
||
| name | type | required | default value | | ||
|-------------|--------| -------- |---------------| | ||
| hosts | array | yes | - | | ||
| username | string | no | - | | ||
| password | string | no | - | | ||
| index | string | yes | - | | ||
| source | array | yes | - | | ||
| scroll_time | string | no | 1m | | ||
| scroll_size | int | no | 100 | | ||
|
||
|
||
|
||
### hosts [array] | ||
Elasticsearch cluster http address, the format is `host:port`, allowing multiple hosts to be specified. Such as `["host1:9200", "host2:9200"]`. | ||
|
||
### username [string] | ||
x-pack username. | ||
|
||
### password [string] | ||
x-pack password. | ||
|
||
### index [string] | ||
Elasticsearch index name, support * fuzzy matching. | ||
|
||
### source [array] | ||
The fields of index. | ||
You can get the document id by specifying the field `_id`.If sink _id to other index,you need specify an alias for _id due to the Elasticsearch limit. | ||
|
||
### scroll_time [String] | ||
Amount of time Elasticsearch will keep the search context alive for scroll requests. | ||
|
||
### scroll_size [int] | ||
Maximum number of hits to be returned with each Elasticsearch scroll request. | ||
|
||
## Examples | ||
simple | ||
```hocon | ||
Elasticsearch { | ||
hosts = ["localhost:9200"] | ||
index = "seatunnel-*" | ||
source = ["_id","name","age"] | ||
} | ||
``` | ||
complex | ||
```hocon | ||
Elasticsearch { | ||
hosts = ["elasticsearch:9200"] | ||
index = "st_index" | ||
schema = { | ||
fields { | ||
c_map = "map<string, tinyint>" | ||
c_array = "array<tinyint>" | ||
c_string = string | ||
c_boolean = boolean | ||
c_tinyint = tinyint | ||
c_smallint = smallint | ||
c_int = int | ||
c_bigint = bigint | ||
c_float = float | ||
c_double = double | ||
c_decimal = "decimal(2, 1)" | ||
c_bytes = bytes | ||
c_date = date | ||
c_timestamp = timestamp | ||
} | ||
} | ||
} | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add complex example