I upgraded my elasticsearch cluster from version 1.7 to 2.0. When I tried to start the upgraded elasticsearch, it didn't initialize and it kept outputting the following message to the log file:
[2015-11-06 03:26:41,191][WARN ][cluster.action.shard ] [Aardwolf] [demo05][0] received shard failed for [demo05][0], node[417Bdz9fR-6M0-06JAorJw], [P], v[48267], s[INITIALIZING], a[id=9K3heegXTy-_EJE7QVNPRg], unassigned_info[[reason=ALLOCATION_FAILED], at[2015-11-06T03:26:41.172Z], details[failed to create index, failure IndexCreationException[failed to create index]; nested: IllegalArgumentException[Unknown Tokenizer type [PathHierarchy] for [win_path_hierarchy]]; ]], indexUUID [J2Vp_LEGQxSCYnXh_qCePw], message [failed to create index], failure [IndexCreationException[failed to create index]; nested: IllegalArgumentException[Unknown Tokenizer type [PathHierarchy] for [win_path_hierarchy]]; ]
[demo05] IndexCreationException[failed to create index]; nested: IllegalArgumentException[Unknown Tokenizer type [PathHierarchy] for [win_path_hierarchy]];
My index mapping file has the following definition:
I only have one plugin: cloud-aws. I am not sure if the error came from the plugin. I simply checked out the /var/log/elasticsearch/[mycluser].log file.
That was not my question. I was asking if you installed the migration plugin before trying to upgrade to 2.0. (sorry I wrote update plugin but I meant migration plugin)
It was built to detect such problems. So I'm curious if it would have detect this case. Could you run it by any chance?
It does not require any restart.
David, unfortunately, I am no longer able to start my elasticsearch service. I tried downgrading my elasticsearch service and starting the service and it failed. The log file complained about something in the index unknown.
My understanding is that the migration plugin requires a running elasticsearch service. Let me know if that is not the case.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.