-
Notifications
You must be signed in to change notification settings - Fork 25.2k
starting first a non-data node and after that the data node will fail to allocate the index #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you explain more the process? Not sure I followed. For example, run this curl script, then start X, then stop, then restart, yada yada yada ;) |
First, let me explain, I figured out what I was doing wrong - see at the bottom. But first here is my scenario: start nodes to index something$ bin/elasticsearch -Des.gateway.type=fs -Des.gateway.fs.location=/home/lucene/elasticsearch/snapshot/gateway -Des.index.gateway.snapshot_interval=-1 -Des.index.engine.robin.refresh_interval=-1 -Des.http.enabled=false $ bin/elasticsearch -f -Des.node.data=false $ curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d ' $ curl -XGET 'http://localhost:9200/twitter/tweet/1?pretty=true' { shutdown all nodes and start first data node and after that the non data node$ curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown' $ bin/elasticsearch -Des.gateway.type=fs -Des.gateway.fs.location=/home/lucene/elasticsearch/snapshot/gateway -Des.index.gateway.snapshot_interval=-1 -Des.index.engine.robin.refresh_interval=-1 -Des.http.enabled=false $ bin/elasticsearch -f -Des.node.data=false $ curl -XGET 'http://localhost:9200/twitter/tweet/1?pretty=true' { shutdown all nodes and start first the non-data node and after that the data$ curl -XPOST 'http://localhost:9200/_cluster/nodes/_all/_shutdown' $ bin/elasticsearch -f -Des.node.data=false $ bin/elasticsearch -Des.gateway.type=fs -Des.gateway.fs.location=/home/lucene/elasticsearch/snapshot/gateway -Des.index.gateway.snapshot_interval=-1 -Des.index.engine.robin.refresh_interval=-1 -Des.http.enabled=false $ curl -XGET 'http://localhost:9200/twitter/tweet/1?pretty=true' { Btw. even when I now shutdown the non-data node and restart that non-data node, But at least, I figured that when I start the non-data node with all the $ bin/elasticsearch -f -Des.node.data=false -Des.gateway.type=fs -Des.gateway.fs.location=/home/lucene/elasticsearch/snapshot/gateway -Des.index.gateway.snapshot_interval=-1 -Des.index.engine.robin.refresh_interval=-1 I was a little bit confused that it is necessary to parametrize a non-data node |
Ahh, I see what happened... . The problem is that the first node started will become the master and reload the cluster meta data (which includes indices created) from the gateway. This is why you need to configure the gateway on it as well. What you can do, by the way, is set make sense? |
excellent :) |
With elasticsearch 2.0, `path.home` must be set now. Standalone Runner (test) is using elasticsearch CLI which relies on `Environment` to be set. It produces now: ``` Exception in thread "main" java.lang.IllegalStateException: path.home is not configured at org.elasticsearch.env.Environment.<init>(Environment.java:99) at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:85) at org.elasticsearch.common.cli.CliTool.<init>(CliTool.java:107) at org.elasticsearch.common.cli.CliTool.<init>(CliTool.java:100) at org.elasticsearch.index.mapper.attachment.test.standalone.StandaloneRunner.<init>(StandaloneRunner.java:170) at org.elasticsearch.index.mapper.attachment.test.standalone.StandaloneRunner.main(StandaloneRunner.java:175) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) ``` Closes elastic#167.
Don't use forbidden API. Actually we don't need to create any `tmp` dir. Related to elastic#167.
elastic/rally-eventdata-track#67 changes the track parameter `shard_count` to the convention `number_of_shards` used in the standard tracks. This commit applies this change to the longrunning benchmarks race configuration.
Thanks a lot for the great work!
Not sure if the following is really a small bug or intentional:
For now (elasticsearch <=0.6) it is mandatory to start first a data-node and after that the non-data-node if you want to have access to the index (else => { "error" : "IndexMissingException[[twitter] missing]" }.
-o
The text was updated successfully, but these errors were encountered: