Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

create index failing in elasticsearch


create index failing in elasticsearch

Master Collaborator

I am getting this in both 6.1 and 6.4 elasticsearch cluster

$ curl -XPUT 'http://node1:9200/company/employee/?_create' -H 'Content-Type: application/json' -d '{
> "name": "John",
> "age" : 55,
> "experienceInYears" : 20
> }'
{"error":"Incorrect HTTP method for uri [/company/employee/?_create] and method [PUT], allowed: [POST]","status":405}

Don't have an account?
Coming from Hortonworks? Activate your account here