I think I'm missing something here. So you have a proxy which redirect queries to port 80 to port 9300, right?
I think this should work. But if Marvel interface works fine using localhost:80/_plugin/marvel URL, it means to me that you redirected 80 port to 9200 port. Note that when using Transport Java Client, you need to define the same cluster name as you defined in your nodes. HTH -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 24 avril 2014 à 08:13:56, Pieter@elucidator ([email protected]) a écrit: Te si do try and Connect by means of port 80 but thuis is forwarded by my proxy to 9300. You mean it Ignores the port settings in THE transport client? Groet, Pieter Op 24 apr. 2014 om 04:43 heeft David Pilato <[email protected]> het volgende geschreven: Just a note: Java client uses Transport Layer (default to 9300 port) and not HTTP layer (default to 9200 port). I think you are trying to set transport to HTTP layer (80 port). -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 24 avr. 2014 à 00:59, Pieter van der Meer <[email protected]> a écrit : All, I am attempting to make a connection to my 1 node cluster by means of the Java Client. but when i do i get the following exception: INFO: [Marvin Flumm] failed to get local cluster state for [#transport#-1][flatback][inet[hostnamel/ipnumber:80]], disconnecting... org.elasticsearch.transport.ReceiveTimeoutTransportException: [][inet[hostnamel/ipnumber:80]][cluster/state] request_id [0] timed out after [5000ms] at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:356) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:744) In my apache log file i see this: [Thu Apr 24 00:02:59 2014] [error] proxy: HTTP: disabled connection for (localhost) [Thu Apr 24 00:25:55 2014] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:2368 (localhost) failed [Thu Apr 24 00:25:55 2014] [error] ap_proxy_connect_backend disabling worker for (localhost) [Thu Apr 24 00:31:38 2014] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:2368 (localhost) failed [Thu Apr 24 00:31:38 2014] [error] ap_proxy_connect_backend disabling worker for (localhost) [Thu Apr 24 00:31:38 2014] [error] proxy: HTTP: disabled connection for (localhost) [Thu Apr 24 00:31:38 2014] [error] proxy: HTTP: disabled connection for (localhost) [Thu Apr 24 00:31:38 2014] [error] proxy: HTTP: disabled connection for (localhost) [Thu Apr 24 00:40:57 2014] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:2368 (localhost) failed [Thu Apr 24 00:40:57 2014] [error] ap_proxy_connect_backend disabling worker for (localhost) all this spoken, how do i connect with the java client to the elastic server by means of the Java API with a proxy in place. tools like Marvel work fine. When looking at the apache log, it seems to mee it is trying to connect by means of a different port?? any suggestions are appreciated! Regards, Pieter -- 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/a511fa31-4e03-4cdf-93e7-b298630fe2d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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/xg1avjyDsG4/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/C073FB8A-FA92-420D-8092-4603DF7B9A46%40pilato.fr. For more options, visit https://groups.google.com/d/optout. -- 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/EE713C30-120E-456F-B6D2-00726881E5BB%40elucidator.nl. For more options, visit https://groups.google.com/d/optout. -- 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/etPan.5358bff6.515f007c.145c1%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/d/optout.
