Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

"failed to parse, document is empty" Error #19

Open
syunusic opened this issue Mar 3, 2016 · 5 comments
Open

"failed to parse, document is empty" Error #19

syunusic opened this issue Mar 3, 2016 · 5 comments

Comments

@syunusic
Copy link

syunusic commented Mar 3, 2016

I have installed ES 2.2.
I tried installing the one that appears in the README:

$ $ES_HOME/bin/plugin install org.codelibs/elasticsearch-reindexing/2.1.1

And also compiling it, in order to use pom.xml that appears to support 2.2.
When I execute it, this is what I get:

$ curl -XPOST localhost:9200/oldindex/_reindex/newindex/
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse, document is empty"}],"type":"mapper_parsing_exception","reason":"failed to parse, document is empty"},"status":400}

And in /var/log/elaticsearch/node.log, this is that I see:

[2016-03-03 15:16:40,773][INFO ][rest.suppressed          ] /oldindex/_reindex/newindex/ Params: {index=oldindex, id=newindex, type=_reindex}
RemoteTransportException[[elastic-1][172.16.87.59:9300][indices:data/write/index]]; nested: RemoteTransportException[[elastic-1][172.16.87.59:9300][indices:data/write/index[p]]]; nested: MapperParsingException[failed to parse, document is empty];

The index exists and has documents in it.

@marevol
Copy link
Contributor

marevol commented Mar 3, 2016

{index=oldindex, id=newindex, type=_reindex}

I think plugin installation was failed.

@syunusic
Copy link
Author

syunusic commented Mar 3, 2016

Here is what I see:

$ sudo bin/plugin install org.codelibs/elasticsearch-reindexing/2.1.1
-> Installing org.codelibs/elasticsearch-reindexing/2.1.1...
Trying https://download.elastic.co/org.codelibs/elasticsearch-reindexing/elasticsearch-reindexing-2.1.1.zip ...
Trying https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-reindexing/2.1.1/elasticsearch-reindexing-2.1.1.zip ...
Downloading ..DONE
Verifying https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-reindexing/2.1.1/elasticsearch-reindexing-2.1.1.zip checksums if available ...
Downloading .DONE
Installed reindexing into /usr/share/elasticsearch/plugins/reindexing

and then:

$ ls /usr/share/elasticsearch/plugins/reindexing
elasticsearch-reindexing-2.1.1.jar  plugin-descriptor.properties

It seems ok to me.

@marevol
Copy link
Contributor

marevol commented Mar 3, 2016

@syunusic
Copy link
Author

syunusic commented Mar 4, 2016

Hmmm… it doesn’t appear:

$ curl 'localhost:9200/_cat/plugins?v'
name        component version type url
elastic-gui head      master  s    /_plugin/head/

:-?

@marevol
Copy link
Contributor

marevol commented Mar 6, 2016

I think elasticsearch's log file contains warn or error messages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants