Hi all, I'm trying to get elasticsearch running on my Ubuntu box and
am apparently doing something wrong, or have misconfigured something.
When I try and connect I'm getting this error below:
I'm trying to use the
2011-05-11 17:21:47,508 [main] ERROR mapping.CouchMappingConfigurator
- Unexpected error creating index [mosaic].
org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:138)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:187)
at org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:150)
at org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)
at org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
I'm able to use the same config I have on my local (OS X) box with no
problems. Everything indexes and searches there no problem. When I
push up my application to my server I see this error when I start up
my application.
I can also access the web application through 9200 ok. I have
successfully done this:
curl -XPUT 'http://127.0.0.1:9200/_river/mosaic/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "127.0.0.1",
"port" : 5984,
"db" : "mosaic",
"filter" : null
}
}'
and watching the logs it does create this index for me. I can then do this:
curl http://localhost:9200/mosaic/_status and see this:
{
"ok" : true,
"_shards" : {
"total" : 10,
"successful" : 5,
"failed" : 0
},
"indices" : {
"mosaic" : {
"index" : {
"primary_size" : "518.2kb",
"primary_size_in_bytes" : 530646,
"size" : "518.2kb",
"size_in_bytes" : 530646
},
"translog" : {
"operations" : 416
},
"docs" : {
"num_docs" : 208,
"max_doc" : 416,
"deleted_docs" : 208
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 22,
"total_time" : "2.2s",
"total_time_in_millis" : 2200
},
"shards" : {
"0" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "ZLjpcPJfQWKGE0HU3oBG_A",
"relocating_node" : null,
"shard" : 0,
"index" : "mosaic"
},
"state" : "STARTED",
"index" : {
"size" : "97.9kb",
"size_in_bytes" : 100304
},
"translog" : {
"id" : 1305159436237,
"operations" : 86
},
"docs" : {
"num_docs" : 43,
"max_doc" : 86,
"deleted_docs" : 43
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 4,
"total_time" : "322ms",
"total_time_in_millis" : 322
}
} ],
"1" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "ZLjpcPJfQWKGE0HU3oBG_A",
"relocating_node" : null,
"shard" : 1,
"index" : "mosaic"
},
"state" : "STARTED",
"index" : {
"size" : "82.3kb",
"size_in_bytes" : 84300
},
"translog" : {
"id" : 1305159436272,
"operations" : 62
},
"docs" : {
"num_docs" : 31,
"max_doc" : 62,
"deleted_docs" : 31
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 4,
"total_time" : "337ms",
"total_time_in_millis" : 337
}
} ],
"2" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "ZLjpcPJfQWKGE0HU3oBG_A",
"relocating_node" : null,
"shard" : 2,
"index" : "mosaic"
},
"state" : "STARTED",
"index" : {
"size" : "123.8kb",
"size_in_bytes" : 126778
},
"translog" : {
"id" : 1305159436303,
"operations" : 106
},
"docs" : {
"num_docs" : 53,
"max_doc" : 106,
"deleted_docs" : 53
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 5,
"total_time" : "577ms",
"total_time_in_millis" : 577
}
} ],
"3" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "ZLjpcPJfQWKGE0HU3oBG_A",
"relocating_node" : null,
"shard" : 3,
"index" : "mosaic"
},
"state" : "STARTED",
"index" : {
"size" : "121.3kb",
"size_in_bytes" : 124226
},
"translog" : {
"id" : 1305159436335,
"operations" : 96
},
"docs" : {
"num_docs" : 48,
"max_doc" : 96,
"deleted_docs" : 48
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 5,
"total_time" : "544ms",
"total_time_in_millis" : 544
}
} ],
"4" : [ {
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "ZLjpcPJfQWKGE0HU3oBG_A",
"relocating_node" : null,
"shard" : 4,
"index" : "mosaic"
},
"state" : "STARTED",
"index" : {
"size" : "92.8kb",
"size_in_bytes" : 95038
},
"translog" : {
"id" : 1305159436395,
"operations" : 66
},
"docs" : {
"num_docs" : 33,
"max_doc" : 66,
"deleted_docs" : 33
},
"merges" : {
"current" : 0,
"total" : 0,
"total_time" : "0s",
"total_time_in_millis" : 0
},
"refresh" : {
"total" : 4,
"total_time" : "420ms",
"total_time_in_millis" : 420
}
} ]
}
}
}
}
Any help in resolving this is greatly appreciated as I would really
like to get this deployed soon :-).
-warner