Elasticsearch: Large json body causes broken pipe error

Created on 11 Apr 2017  路  2Comments  路  Source: elastic/elasticsearch

Hi, I am a newbie to elastic search. I need to index many large csv documents (about 150MB).
My plan is to create a mapping like this:

"basetype": {
        "_all": {
          "enabled": false
        },
        "properties": {
          "data": {
            "type": "text"
          },
          "description": {
            "type": "text"
          },
          "downloadURL": {
            "type": "text"
          },
          "format": {
            "type": "text"
          },
          "keyword": {
            "type": "text"
          },
          "title": {
            "type": "text"
          }
        }
      }

For 'data' field, this will be the json string converted from csv file.
When I was trying to post a new json to elastic search, it gave a following error:

ConnectionError: ConnectionError(('Connection aborted.', OSError(41, 'Protocol wrong type for socket'))) caused by: ProtocolError(('Connection aborted.', OSError(41, 'Protocol wrong type for socket')))

Can anyone help me with this issue? Thanks!

Most helpful comment

Happened to me too, so it's good that it was here :)

All 2 comments

I suspect that your problem is that you need to increase the http.max_content_length which defaults to only 100 MB. If you're sending 150 MB down the pipe and you haven't increased this setting, then Elasticsearch is going to close the connection.

Beyond this, Elastic provides a forum for asking general questions and instead prefers to use GitHub only for verified bug reports and feature requests. There's an active community there that should be able to help get an answer to additional question. As such, I hope you don't mind that I close this.

Happened to me too, so it's good that it was here :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjernst picture rjernst  路  3Comments

ppf2 picture ppf2  路  3Comments

rpalsaxena picture rpalsaxena  路  3Comments

Praveen82 picture Praveen82  路  3Comments

DhairyashilBhosale picture DhairyashilBhosale  路  3Comments