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

include_type_name=true is added to ES 5.x queries eventhough it doesn't support that #1276

Closed
codefromthecrypt opened this issue Apr 13, 2019 · 5 comments

Comments

@codefromthecrypt
Copy link

It seems the code that adds include_type_name=true should guard on versions of ES that support it. Right now, it dies on ES 5.x due to this. I'm not sure which version after 6.3.2 broke this.

org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: org.elasticsearch.hadoop.rest.EsHadoopRemoteException: illegal_argument_exception: request [/test_zipkin:span-2019-04-13/_mapping/span] contains unrecognized parameter: [include_type_name]
null

	at org.elasticsearch.hadoop.rest.RestClient.checkResponse(RestClient.java:465)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:422)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:384)
	at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:388)
	at org.elasticsearch.hadoop.rest.RestClient.get(RestClient.java:168)
	at org.elasticsearch.hadoop.rest.RestClient.getMappings(RestClient.java:315)
	at org.elasticsearch.hadoop.rest.RestClient.getMappings(RestClient.java:305)
	at org.elasticsearch.hadoop.rest.RestRepository.getMappings(RestRepository.java:293)
	at org.elasticsearch.hadoop.rest.RestService.findPartitions(RestService.java:252)
$ curl http://localhost:32801/
{
  "name" : "lY1n3bH",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "PDUcXXSeQf-RrFawFZPqzQ",
  "version" : {
    "number" : "5.6.16",
    "build_hash" : "3a740d1",
    "build_date" : "2019-03-13T15:33:36.565Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}

$ curl http://localhost:32801/test_zipkin-2019-04-13/_mapping/span?include_type_name=true
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/test_zipkin-2019-04-13/_mapping/span] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/test_zipkin-2019-04-13/_mapping/span] contains unrecognized parameter: [include_type_name]"},"status":400}
@codefromthecrypt
Copy link
Author

looks like this happened in the 7.0 beta1 version forward 047d80b

@jbaiera
Copy link
Member

jbaiera commented Apr 17, 2019

Thanks for reporting, definitely a bug.

@codefromthecrypt
Copy link
Author

was this fixed in the release cut yesterday?

@jbaiera
Copy link
Member

jbaiera commented May 6, 2019

@adriancole Apologies, I was away on a short break while that release was cut, but should have a patch landing to fix the 5.x compatibility issues soon. The 2.x issues hopefully will be resolved shortly after.

@jbaiera
Copy link
Member

jbaiera commented May 10, 2019

This should be fixed with #1284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants