简体   繁体   English

创建索引时出现Elasticsearch错误

[英]Elasticsearch error when creating index

I am getting the following error when trying to create an index: 尝试创建索引时出现以下错误:

{"error":"IndexCreationException[[myindex] failed to create index]; nested: NoClassDefFoundError[Could not initialize class org.elasticsearch.index.codec.postingsformat.PostingFormats]; ","status":500}

When I do 当我做

curl http://localhost:9200 

I get: 我得到:

{
"ok" : true,
"status" : 200,
"name" : "Shamrock",
"version" : {
    "number" : "0.90.5",
    "build_hash" : "c8714e8e0620b62638f660f6144831792b9dedee",
    "build_timestamp" : "2013-09-17T12:50:20Z",
    "build_snapshot" : false,
    "lucene_version" : "4.4"
},
"tagline" : "You Know, for Search"
}

When I do 当我做

java -version

I get 我懂了

java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

When I do 当我做

echo "$JAVA_HOME"

I get 我懂了

/usr/local/jdk

Here is the elasticsearch.log 这是elasticsearch.log

[2013-09-19 22:27:04,637][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: initializing ...
[2013-09-19 22:27:04,646][INFO ][plugins                  ] [Iron Lad] loaded [], sites []
[2013-09-19 22:27:07,170][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: initialized
[2013-09-19 22:27:07,170][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: starting ...
[2013-09-19 22:27:07,333][INFO ][transport                ] [Iron Lad] bound_address {inet[/0.0.0.0:9301]}, publish_address {inet[/66.66.66.66:9301]}
[2013-09-19 22:27:10,407][INFO ][cluster.service          ] [Iron Lad] new_master [Iron Lad][Nl9geV2WQICQRPCjZbGg5w][inet[/66.66.66.66:9301]], reason: zen-disco-join (elected_as_master)
[2013-09-19 22:27:10,434][INFO ][discovery                ] [Iron Lad] elasticsearch/Nl9geV2WQICQRPCjZbGg5w
[2013-09-19 22:27:10,495][INFO ][http                     ] [Iron Lad] bound_address {inet[/0.0.0.0:9201]}, publish_address {inet[/66.66.66.66:9201]}
[2013-09-19 22:27:10,495][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: started
[2013-09-19 22:27:10,501][INFO ][gateway                  ] [Iron Lad] recovered [0] indices into cluster_state
[2013-09-19 22:29:32,668][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: stopping ...
[2013-09-19 22:29:32,703][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: stopped
[2013-09-19 22:29:32,704][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: closing ...
[2013-09-19 22:29:32,733][INFO ][node                     ] [Iron Lad] {0.90.0.Beta1}[15738]: closed
[2013-09-19 22:29:34,985][INFO ][node                     ] [Worthington, Warren III] {0.90.0.Beta1}[16047]: initializing ...
[2013-09-19 22:29:34,991][INFO ][plugins                  ] [Worthington, Warren III] loaded [], sites []
[2013-09-19 22:29:37,492][INFO ][node                     ] [Worthington, Warren III] {0.90.0.Beta1}[16047]: initialized
[2013-09-19 22:29:37,492][INFO ][node                     ] [Worthington, Warren III] {0.90.0.Beta1}[16047]: starting ...
[2013-09-19 22:29:37,576][INFO ][transport                ] [Worthington, Warren III] bound_address {inet[/0.0.0.0:9301]}, publish_address {inet[/66.66.66.66:9301]}
[2013-09-19 22:29:40,613][INFO ][cluster.service          ] [Worthington, Warren III] new_master [Worthington, Warren III][-VnBhd4JTKe3Vg0PGqGKcg][inet[/66.66.66.66:9301]], reason: zen-disco-join (elected_as_master)
[2013-09-19 22:29:40,655][INFO ][discovery                ] [Worthington, Warren III] elasticsearch/-VnBhd4JTKe3Vg0PGqGKcg
[2013-09-19 22:29:40,717][INFO ][http                     ] [Worthington, Warren III] bound_address {inet[/0.0.0.0:9201]}, publish_address {inet[/66.66.66.66:9201]}
[2013-09-19 22:29:40,717][INFO ][node                     ] [Worthington, Warren III] {0.90.0.Beta1}[16047]: started
[2013-09-19 22:29:40,721][INFO ][gateway                  ] [Worthington, Warren III] recovered [0] indices into cluster_state

Any thoughts or ideas would be greatly appreciated. 任何想法或想法将不胜感激。

I found there were multiple elastic search nodes running. 我发现有多个弹性搜索节点在运行。 I ended up stopping all of them and then started one up using /etc/init.d/elasticsearch start. 我最终停止了所有这些程序,然后使用/etc/init.d/elasticsearch start启动了它们。

Keep in mind you need to install the init.d script by following the instructions at: 请记住,您需要按照以下说明安装init.d脚本:

http://www.elasticsearch.org/guide/reference/setup/installation/ http://www.elasticsearch.org/guide/reference/setup/installation/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ElasticSearch 创建索引返回错误 - ElasticSearch creating index returns error 在 elasticsearch 中创建索引时出现“unknown key [tagindex_v2] for create index”错误 - "unknown key [tagindex_v2] for create index" error when creating an index in elasticsearch 使用自定义分析器在Elasticsearch上创建索引时出错 - Error while creating an index on Elasticsearch with custom analyzer 使用 Postman 创建 ElasticSearch 索引时出错 - Error While Creating an ElasticSearch index with Postman 为Elasticsearch索引创建映射时出现MapperParsingException - MapperParsingException when creating mapping for elasticsearch index 在Play框架中使用Elastic4s创建Elasticsearch索引时出现无效的Json错误 - Invalid Json error when creating Elasticsearch index with elastic4s in play framework 在索引上创建令牌过滤器时,使用Elasticsearch Nest库会引发错误 - Using Elasticsearch Nest library throws error when creating a token Filter on index 创建索引时出现Elasticsearch错误,可能是由于模块Kuromoji未正确安装 - Elasticsearch error when creating index possibly due to module Kuromoji not installed properly Filebeat没有在Elasticsearch中创建索引 - Filebeat is not creating index in Elasticsearch 用Elasticsearch River创建索引 - creating index with elasticsearch river
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM