James_Cook
(James Cook)
December 10, 2010, 6:04pm
1
Here is a gist of my log files: https://gist.github.com/736518
I am using ES 0.13.0, and the gist includes the elastic search properties.
When I use a gateway.type of none, the server node starts up and the cluster
health is GREEN.
When the server node starts up, its cluster health is RED and remains RED,
even after waiting for the status to change to YELLOW.
Here is the code I use to start the server and wait for YELLOW.
server = nodeBuilder()
.settings(ImmutableSettings.settingsBuilder().put(configuration))
.build();
server.start();
getClient().admin().cluster().prepareHealth()
.setWaitForYellowStatus()
.setTimeout("30s")
.execute().actionGet();
ClusterHealthResponse healthResponse = getClient().admin().cluster()
.prepareHealth()
.execute().actionGet();
LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?
Any help would be welcome.
kimchy
(Shay Banon)
December 11, 2010, 8:49pm
2
Based on the gist, there were no indices to be created, right?
On Friday, December 10, 2010 at 8:04 PM, James Cook wrote:
Here is a gist of my log files: gist:736518 · GitHub
I am using ES 0.13.0, and the gist includes the Elasticsearch properties.
When I use a gateway.type of none, the server node starts up and the cluster health is GREEN.
When the server node starts up, its cluster health is RED and remains RED, even after waiting for the status to change to YELLOW.
Here is the code I use to start the server and wait for YELLOW.
server = nodeBuilder()
.settings(ImmutableSettings.settingsBuilder().put(configuration))
.build();
server.start();
getClient().admin().cluster().prepareHealth()
.setWaitForYellowStatus()
.setTimeout("30s")
.execute().actionGet();
ClusterHealthResponse healthResponse = getClient().admin().cluster()
.prepareHealth()
.execute().actionGet();
LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?
Any help would be welcome.
James_Cook
(James Cook)
December 13, 2010, 2:11am
3
This is a first time run on EC2, so the gateway held no index data.
-- jim
On Sat, Dec 11, 2010 at 3:49 PM, Shay Banon shay.banon@elasticsearch.com wrote:
Based on the gist, there were no indices to be created, right?
On Friday, December 10, 2010 at 8:04 PM, James Cook wrote:
Here is a gist of my log files: gist:736518 · GitHub
I am using ES 0.13.0, and the gist includes the Elasticsearch properties.
When I use a gateway.type of none, the server node starts up and the
cluster health is GREEN.
When the server node starts up, its cluster health is RED and remains RED,
even after waiting for the status to change to YELLOW.
Here is the code I use to start the server and wait for YELLOW.
server = nodeBuilder()
.settings(ImmutableSettings.settingsBuilder().put(configuration))
.build();
server.start();
getClient().admin().cluster().prepareHealth()
.setWaitForYellowStatus()
.setTimeout("30s")
.execute().actionGet();
ClusterHealthResponse healthResponse = getClient().admin().cluster()
.prepareHealth()
.execute().actionGet();
LOG.info("ES cluster status is " + healthResponse.getStatus()); // RED?
Any help would be welcome.