Why Is An Error Reported When I Import Data by Calling an API for Cluster 7.1.1?
Issue
When calling an API to import data, an error is reported.
Symptom
Failed to import data.
Possible Causes
The command used to create an index is incorrect.
Procedure
- Run the following command to create an index:
curl -X PUT -u admin:gh_-Ut=zm7H7A8E https://IP:9200/zxh_store -H 'Content-Type: application/json' -d '{ "settings": { "number_of_shards": 1 }, "mappings": { "properties": {"products": { "properties": { "productName": { "type": "text" }, "size": { "type": "keyword" } } } } } }' -k
- If the error persists after an index is created, contact technical support.
Last Article: Data Import and Export
Next Article: What Should I Do When Logs Cannot Be Written to CSS and A High CPU Usage Is Displayed?
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.