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 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/C073FB8A-FA92-420D-8092-4603DF7B9A46%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to