Thanks, it works now. I suggest to point out the detail about local transport in the docs for TransportClient.
Il giorno mercoledì 2 aprile 2014 15:31:06 UTC+1, Igor Motov ha scritto: > > You should specify the same cluster name for both node and transport > client. It looks like they are running in different clusters: > > [2014-04-02 15:19:23,262][WARN ][org.elasticsearch.client.transport] [ > Humus Sapien] node [#transport#-1][d][inet[localhost/127.0.0.1:9300]] not > part of the cluster Cluster [elasticsearch], ignoring... > > On Wednesday, April 2, 2014 10:27:19 AM UTC-4, Dario Rossi wrote: >> >> I forgot, after setting up the embedded node, I wait the cluster status >> to be Yellow with >> >> Client client = node.client(); >> client.admin().cluster().prepareHealth().setWaitForYellowStatus >> ().execute().actionGet(); >> >> >> this is done on the embedded node. >> >> Il giorno mercoledì 2 aprile 2014 15:24:35 UTC+1, Dario Rossi ha scritto: >>> >>> I set it to local = false and now I don't get anymore the connection >>> refused. But unfortunaly I get another thing: >>> >>> >>> [2014-04-02 15:19:23,218][DEBUG][org.elasticsearch.transport.netty] [ >>> Humus Sapien] using worker_count[12], port[9300-9400], >>> bind_host[null],publish_host >>> [null], compress[false], connect_timeout[30s], connections_per_node[2/3/ >>> 6/1/1], receive_predictor[512kb->512kb] >>> [2014-04-02 15:19:23,218][DEBUG][org.elasticsearch.client.transport] [ >>> Humus Sapien] node_sampler_interval[5s] >>> [2014-04-02 15:19:23,232][DEBUG][org.elasticsearch.client.transport] [ >>> Humus Sapien] adding address [[ >>> #transport#-1][d][inet[localhost/127.0.0.1:9300]]] >>> [2014-04-02 15:19:23,232][TRACE][org.elasticsearch.client.transport] [ >>> Humus Sapien] connecting to listed node (light) [[ >>> #transport#-1][d][inet[localhost/127.0.0.1:9300]]] >>> [2014-04-02 15:19:23,233][TRACE][org.elasticsearch.transport.netty] [ >>> Jean Grey-Summers] channel opened: [id: 0x6045a678, /127.0.0.1:51541 => >>> /127.0.0.1:9300] >>> [2014-04-02 15:19:23,233][DEBUG][org.elasticsearch.transport.netty] [ >>> Humus Sapien] connected to node [[ >>> #transport#-1][d][inet[localhost/127.0.0.1:9300]]] >>> [2014-04-02 15:19:23,250][TRACE][org.elasticsearch.plugins] [Jean Grey- >>> Summers] starting to fetch info on plugins >>> [2014-04-02 15:19:23,262][WARN ][org.elasticsearch.client.transport] [ >>> Humus Sapien] node [#transport#-1][d][inet[localhost/127.0.0.1:9300]] >>> not part of the cluster Cluster [elasticsearch], ignoring... >>> >>> >>> org.elasticsearch.client.transport.NoNodeAvailableException: No node >>> available >>> at org.elasticsearch.client.transport.TransportClientNodesService. >>> execute(TransportClientNodesService.java:219) >>> at org.elasticsearch.client.transport.support.InternalTransportClient. >>> execute(InternalTransportClient.java:106) >>> at org.elasticsearch.client.support.AbstractClient.index(AbstractClient >>> .java:82) >>> at org.elasticsearch.client.transport.TransportClient.index( >>> TransportClient.java:330) >>> at org.elasticsearch.action.index.IndexRequestBuilder.doExecute( >>> IndexRequestBuilder.java:314) >>> at org.elasticsearch.action.ActionRequestBuilder.execute( >>> ActionRequestBuilder.java:85) >>> at org.elasticsearch.action.ActionRequestBuilder.execute( >>> ActionRequestBuilder.java:59) >>> at com.mycode.estests.test.TransportTest.transportTest(TransportTest. >>> java:20) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl >>> .java:57) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke( >>> DelegatingMethodAccessorImpl.java:43) >>> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall( >>> FrameworkMethod.java:47) >>> at org.junit.internal.runners.model.ReflectiveCallable.run( >>> ReflectiveCallable.java:12) >>> at org.junit.runners.model.FrameworkMethod.invokeExplosively( >>> FrameworkMethod.java:44) >>> at org.junit.internal.runners.statements.InvokeMethod.<span >>> style="color: #000;" class >>> ... >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b05929e1-9aa8-4034-a9e3-91b75c3937a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
