Timeout when trying to create an index via Java API

Hello,

I'm trying to create an index with a whitespace default tokenizer using the
Java API like this:

Settings indexSettings =
ImmutableSettings.settingsBuilder().put("analysis.analyzer.default.tokenizer",
"whitespace").build();
CreateIndexRequest req = new CreateIndexRequest(index, indexSettings);
client.admin().indices().create(req).actionGet(5000);

This always times out after the 5 seconds in the actionGet call. The code
is called in the constructor of a river (I need the river to create the
index). I'm using ES 1.0.1 (both the server and the Java lib).

What am I missing?

Thank you,
Mihnea

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0d5a3776-65cc-4f7d-be5b-ff0944ee67eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

drewr helped me on IRC. The problem was that I was calling the code in
the constructor of a river, which was called too early. I moved the
code so that it got called later and all is fine now.

Thanks!
Mihnea

On Tue, Mar 11, 2014 at 10:59 PM, Mihnea Dobrescu-Balaur
mihneadb@gmail.com wrote:

Hello,

I'm trying to create an index with a whitespace default tokenizer using the
Java API like this:

Settings indexSettings =
ImmutableSettings.settingsBuilder().put("analysis.analyzer.default.tokenizer",
"whitespace").build();
CreateIndexRequest req = new CreateIndexRequest(index, indexSettings);
client.admin().indices().create(req).actionGet(5000);

This always times out after the 5 seconds in the actionGet call. The code is
called in the constructor of a river (I need the river to create the index).
I'm using ES 1.0.1 (both the server and the Java lib).

What am I missing?

Thank you,
Mihnea

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/WG-mQSFuPoo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0d5a3776-65cc-4f7d-be5b-ff0944ee67eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mihnea Dobrescu-Balaur

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGmmvX%2BhO2y_0FC9XwKnBiCZw7Mm7xocW%3D%2B8FCPeeQNZ9bG8Sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.