Elasticsearch: Bulk request throws error in Elasticsearch 6.1.1

前端 未结 16 2088
日久生厌
日久生厌 2020-12-16 11:35

I recently upgraded to Elasticsearch version 6.1.1 and now I can\'t bulk index documents from a JSON file. When I do it inline, it works fine. Here are the contents of the d

16条回答
  •  臣服心动
    2020-12-16 12:20

    I had the same problem running on Windows 10, using ElasticSearch 7.5.1.

    I tried all the answers; none of them worked. I was certain I had a newline at the end of my file.

    To get it to work, I had to ensure the file I was uploading was using UNIX end-of-line characters (0A only, no 0D), and also the encoding had to be UTF-8.

    Using Notepad++, you can edit the metadata of the file.

    Finally some good news:

提交回复
热议问题