gpt4 book ai didi

elasticsearch - OpenEDX FullStack中的Elasticsearch出现错误

转载 作者:行者123 更新时间:2023-12-02 22:40:32 25 4
gpt4 key购买 nike

我在Ubuntu 12.04上安装了fullstack open edx,然后使用fork edx-platform repo。完成后,elasticsearch不能用于查找类(class)。它始终显示“我们找不到任何结果”消息。

我在elasticsearch.log上检查日志,遇到此错误。

2015-09-17 10:20:33,241][WARN ][transport.netty          ] [Graydon Creed] exception caught on transport layer [[id: 0x5255e28c, /192.168.33.1:54633 :> /192.168.33.10:9300]], closing connection
java.io.StreamCorruptedException: invalid internal transport message format
at org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:482)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.elasticsearch.common.netty.channel.Channels.fireChannelDisconnected(Channels.java:396)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:360)
at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:81)
at org.elasticsearch.common.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:36)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)

这是集群状态。
vagrant@precise64:/etc/elasticsearch$ curl -XGET 'http://localhost:9200/?pretty=true'
{
"ok" : true,
"status" : 200,
"name" : "Jericho Drumm",
"version" : {
"number" : "0.90.11",
"build_hash" : "11da1bacf39cec400fd97581668acb2c5450516c",
"build_timestamp" : "2014-02-03T15:27:39Z",
"build_snapshot" : false,
"lucene_version" : "4.6"
},
"tagline" : "You Know, for Search"
}
vagrant@precise64:/etc/elasticsearch$ curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 10,
"active_shards" : 10,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 10
}

我该如何解决此错误?

最佳答案

当有人通过指定端口9300而不是端口9200来错误配置Elasticsearch REST客户端时,通常会发生此错误。检查在192.168.33.1上运行的客户端的配置,并确保它使用9200

关于elasticsearch - OpenEDX FullStack中的Elasticsearch出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32630436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com