# Error in loading data set

**URL:** <https://discuss.elastic.co/t/error-in-loading-data-set/249244>\
**Category:** Kibana\
**Created:** [September 20, 2020, 8:43am UTC](https://discuss.elastic.co/t/error-in-loading-data-set/249244 "2020-09-20T08:43:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glitch/32/75886_2.png) [@glitch](https://discuss.elastic.co/u/glitch)\
**Post date:** [September 20, 2020, 8:43am UTC](https://discuss.elastic.co/t/error-in-loading-data-set/249244/1 "2020-09-20T08:43:35Z")

</div>

As a complete beginner I was following the [official tutorial on Kibana](https://www.elastic.co/guide/en/kibana/current/tutorial-build-dashboard.html).

While having created a map for `Shakespeare data set`

> PUT /shakespeare  
> {  
> "mappings": {  
> "properties": {  
> "speaker": {"type": "keyword"},  
> "play\_name": {"type": "keyword"},  
> "line\_id": {"type": "integer"},  
> "speech\_number": {"type": "integer"}  
> }  
> }  
> }

Now, I am encountering error in loading the data set using

> curl -u elastic -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/\_bulk?pretty' --data-binary @shakespeare.json

The error says there some `EOF` error:

> {  
> "error" : {  
> "root\_cause" : [  
> {  
> "type" : "json\_e\_o\_f\_exception",  
> "reason" : "Unexpected end-of-input: expected close marker for Object (start marker at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 1, column: 1])\n at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 2, column: 1]"  
> }  
> ],  
> "type" : "json\_e\_o\_f\_exception",  
> "reason" : "Unexpected end-of-input: expected close marker for Object (start marker at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 1, column: 1])\n at [Source: (org.elasticsearch.common.bytes.AbstractBytesReference$MarkSupportingStreamInputWrapper); line: 2, column: 1]"  
> },  
> "status" : 400  
> }

Your help will be much appreciated 😄

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 20, 2020, 11:48pm UTC](https://discuss.elastic.co/t/error-in-loading-data-set/249244/2 "2020-09-20T23:48:33Z")

</div>

What version are you running of the stack?

---

<div class="post-metadata">

**Author:** ![glitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glitch/32/75886_2.png) [@glitch](https://discuss.elastic.co/u/glitch)\
**Post date:** [September 26, 2020, 7:34am UTC](https://discuss.elastic.co/t/error-in-loading-data-set/249244/3 "2020-09-26T07:34:46Z")

</div>

@warkolm Apparently just shredding the storage by a few GBs did the trick as mentioned in other discussions in this forum.  
Thank You.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 24, 2020, 7:35am UTC](https://discuss.elastic.co/t/error-in-loading-data-set/249244/4 "2020-10-24T07:35:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
