elasticsearch kuromoji 插件使用失败
Fail to use elasticsearch kuromoji plugin
我使用的是 Bitnami Elasticsearch AMI,我按照说明安装了 kuromoji 插件。之后我重新启动了elasticsearch。
在尝试创建一个使用它的新索引时,我遇到了以下问题:
{"error":"RemoteTransportException[[Scream][inet[/10.0.0.164:9300]][indices:admin/create]];
nested: IndexCreationException[[stories-ja] failed to create index];
nested: ElasticsearchIllegalArgumentException[failed to find token
filter type [kuromoji_readingform] for [kuromoji_rf]]; nested:
NoClassSettingsException[Failed to load class setting [type] with
value [kuromoji_readingform]]; nested:
ClassNotFoundException[org.elasticsearch.index.analysis.kuromojireadingform.KuromojiReadingformTokenFilterFactory];
","status":400}
同样的索引在本地创建成功,同样的elasticsearch版本和插件版本,估计跟Bitnami环境有关系
如有任何帮助,我们将不胜感激。
索引创建失败,因为插件没有安装在集群中的所有节点上。
一旦我安装在节点上,它就可以完美运行。
后来发现这是一个已知的功能...
我使用的是 Bitnami Elasticsearch AMI,我按照说明安装了 kuromoji 插件。之后我重新启动了elasticsearch。
在尝试创建一个使用它的新索引时,我遇到了以下问题:
{"error":"RemoteTransportException[[Scream][inet[/10.0.0.164:9300]][indices:admin/create]]; nested: IndexCreationException[[stories-ja] failed to create index]; nested: ElasticsearchIllegalArgumentException[failed to find token filter type [kuromoji_readingform] for [kuromoji_rf]]; nested: NoClassSettingsException[Failed to load class setting [type] with value [kuromoji_readingform]]; nested: ClassNotFoundException[org.elasticsearch.index.analysis.kuromojireadingform.KuromojiReadingformTokenFilterFactory]; ","status":400}
同样的索引在本地创建成功,同样的elasticsearch版本和插件版本,估计跟Bitnami环境有关系
如有任何帮助,我们将不胜感激。
索引创建失败,因为插件没有安装在集群中的所有节点上。
一旦我安装在节点上,它就可以完美运行。
后来发现这是一个已知的功能...