愚者求师之过,智者从师之长。

river jdbc总是报节点不存在

Elasticsearch | 作者 owen | 发布于2016年04月02日 | 阅读数:7086

报错信息:
[18:13:17,128][ERROR][importer.jdbc ][pool-3-thread-1] error while processing request: no cluster nodes available, check settings {autodiscover=false, client.transport.ignore_cluster_name=false, client.transport.nodes_sampler_interval=5s, client.transport.ping_timeout=5s, cluster.name=mangoerp_cluster, flush_interval=5s, host.0=localhost, max_actions_per_request=10000, max_concurrent_requests=8, max_volume_per_request=10mb, name=importer, port=9300, sniff=false}
org.elasticsearch.client.transport.NoNodeAvailableException: no cluster nodes available, check settings {autodiscover=false, client.transport.ignore_cluster_name=false, client.transport.nodes_sampler_interval=5s, client.transport.ping_timeout=5s, cluster.name=mangoerp_cluster, flush_interval=5s, host.0=localhost, max_actions_per_request=10000, max_concurrent_requests=8, max_volume_per_request=10mb, name=importer, port=9300, sniff=false}

设置:curl -XPOST 'localhost:9200/product' -d '
{
"mappings": {
"aa": {},
"bb": {
"_parent": {
"type": "aa"
}
}
},
"settings" : {
"index" : {
"number_of_shards" : 1
}
},
"_routing": {
"required": true
}
}'



通过head插件 主分片是绿色的,不知道有没有人遇到过我这种情况
已邀请:

owen

赞同来自:

还有一个错误信息:
 
[18:21:04,262][INFO ][org.elasticsearch.client.transport][elasticsearch[importer][generic][T#1]] [importer] failed to get node info for {#transport#-1}{::1}{localhost/[::1]:9300}, disconnecting...
org.elasticsearch.transport.RemoteTransportException: [Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]]
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.liveness.LivenessResponse]
        at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:179) ~[elasticsearch-jdbc-2.2.0.0-jar-with-dependencies.jar:?]
        at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:138) ~[elasticsearch-jdbc-2.2.0.0-jar-with-dependencies.jar:?]
        at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) ~[elasticsearch-jdbc-2.2.0.0-jar-with-dependencies.jar:?]
        at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) ~[elasticsearch-jdbc-2.2.0.0-jar-with-dependencies.jar:?]
        at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) ~[elasticsearch-jdbc-2.2.0.0-jar-with-dependencies.jar:?]

kl - 90后IT新贵

赞同来自:

楼主用的什么版本的es啊

要回复问题请先登录注册