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

Is it possible to support elasticsearch 6.x? #711

Closed
alvinh opened this issue Apr 20, 2018 · 6 comments
Closed

Is it possible to support elasticsearch 6.x? #711

alvinh opened this issue Apr 20, 2018 · 6 comments
Assignees
Milestone

Comments

@alvinh
Copy link

alvinh commented Apr 20, 2018

Hi, is it possible to support elasticsearch 6,x? After 6.x version release, multiple types in the same index had been removed, so we will encounter the following error when we use "elastic" as backend with 6.x version.

Received Exception:
Error: elastic: Error 400 (Bad Request): Rejecting mapping update to [cayley] as the final mapping would have more than 1 type: [nodes, log] [type=illegal_argument_exception]

Many thanks....

@dennwc dennwc self-assigned this Apr 23, 2018
@dennwc
Copy link
Member

dennwc commented Apr 23, 2018

Sure, we will support it.

@dennwc dennwc added this to the v0.7.3 milestone Apr 23, 2018
@dennwc dennwc closed this as completed in cf8bb13 Apr 23, 2018
@alvinh
Copy link
Author

alvinh commented Apr 24, 2018

Hi dennwc, thanks for your prompt reply. But i still encountered the same problem when connecting to elasticsearch 6.x.

Received Exception:
Error: elastic: Error 400 (Bad Request): Rejecting mapping update to [cayley_nodes] as the final mapping would have more than 1 type: [nodes, log] [type=illegal_argument_exception]

Many thanks....

@dennwc
Copy link
Member

dennwc commented Apr 24, 2018

@alvinh Sorry, I cannot reproduce. I'm testing it on ElasticSearch v6.2.4 (Docker image) and Cayley version v0.7.3. Make sure you updated to the latest version and in case it still doesn't work, please paste an output of cayley version.

@alvinh
Copy link
Author

alvinh commented Apr 24, 2018

Hi @dennwc, the output and config file are as below, thanks.

Cayley Output:
[root@m01 cayley_0.7.3_linux_amd64]# ./cayley http --host=0.0.0.0:64211 --config=cayley_elasticsearch_config.yml
I0424 17:25:25.802240 116372 cayley.go:63] Cayley version: 0.7.3 (782194b)
I0424 17:25:25.802372 116372 cayley.go:76] using config file: cayley_elasticsearch_config.yml
I0424 17:25:25.802454 116372 database.go:187] using backend "elastic" (https://127.0.0.1:9201)
Error: elastic: Error 400 (Bad Request): Rejecting mapping update to [cayley_nodes] as the final mapping would have more than 1 type: [nodes, log] [type=illegal_argument_exception]

Config File
store:
backend: elastic
address: "https://127.0.0.1:9201"
read_only: false
query:
timeout: 30s
load:
ignore_duplicates: false
ignore_missing: false
batch: 10000

@dennwc
Copy link
Member

dennwc commented Apr 24, 2018

Everything looks good, but it still tries to use an old code path. It might happen because of failed ES version detection. Let's try to debug it with your version of ElasticSearch. Please PM me on Slack.

@dennwc dennwc reopened this Apr 24, 2018
@dennwc
Copy link
Member

dennwc commented Apr 25, 2018

Was a cluster misconfiguration issue

@dennwc dennwc closed this as completed Apr 25, 2018
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

No branches or pull requests

2 participants