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

re indexing not works #15

Open
veeruborra opened this issue Jan 22, 2016 · 6 comments
Open

re indexing not works #15

veeruborra opened this issue Jan 22, 2016 · 6 comments

Comments

@veeruborra
Copy link

I created a index with mappings and stored 3020 documents in it.
Now i created another index with mappins and changed type for one field.Now i am trying to move only data from oldindex to newindex.After the process completes no data is shown in new index.

curl -XPOST localhost:9200/admin_logs421/_reindex/admin_logs422?wait_for_completion=true

the error is

{"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}

@marevol
Copy link
Contributor

marevol commented Jan 23, 2016

Please check elasticsearch's log file.

@ghost
Copy link

ghost commented Jan 25, 2016

Having the same issue with 2.1.1.

[2016-01-25 01:04:21,841][INFO ][rest.suppressed          ] /oldindex/_reindex/newindex/
Params: {id=newindex, index=oldindex, type=_reindex}
RemoteTransportException[[Aleksander Lukin][172.31.7.244:9300][indices:data/write/index]]; nested: MapperParsingException[failed to parse, document is empty];
Caused by: MapperParsingException[failed to parse, document is empty]
        at org.elasticsearch.index.mapper.DocumentParser.innerParseDocument(DocumentParser.java:156)
        at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:79)
        at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:304)
        at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:551)
        at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:542)
        at org.elasticsearch.action.support.replication.TransportReplicationAction.prepareIndexOperationOnPrimary(TransportReplicationAction.java:1049)
        at org.elasticsearch.action.support.replication.TransportReplicationAction.executeIndexRequestOnPrimary(TransportReplicationAction.java:1060)
        at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:170)
        at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.performOnPrimary(TransportReplicationAction.java:579)
        at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase$1.doRun(TransportReplicationAction.java:452)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

@marevol
Copy link
Contributor

marevol commented Jan 25, 2016

Installation of Reindexing Plugin seems to be failed.

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

elasticsearch handles _reindex as type.
Please check if the plugin is installed correctly.

@ghost
Copy link

ghost commented Jan 25, 2016

I installed 2.1.1 as a plugin in ES 2.1.1.

$ bin/plugin list
Installed plugins in /home/hadoop/elasticsearch/elasticsearch-2.1.1/plugins:
    - kopf
    - reindexing
    - repository-hdfs
    - cloud-aws
    - hq

$ curl -XGET 'http://ip-172-31-12-242:9200/_reindex'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"No feature for name [_reindex]"}],"type":"illegal_argument_exception","reason":"No feature for name [_reindex]"},"status":400}

@marevol
Copy link
Contributor

marevol commented Jan 25, 2016

@ghost
Copy link

ghost commented Jan 25, 2016

Ah. I had to restart ES master, then it started working.

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