Spark and elasticsearch-hadoop-2.0.0

(Ignacio Mulas) #1

I am trying to setup a spark + elasticsearch solution. I am trying the
simple example done by Barnaby Gray here [1], trying to adapt it to the
elasticsearch-hadoop 2.0.0. I get some connectivity error that I am not
able to overcome. I get the following error:

14/06/16 17:11:13 INFO HttpMethodDirector: I/O exception
( caught when processing request: Connection
timed out
14/06/16 17:11:13 INFO HttpMethodDirector: Retrying request

For the complete log:

I have the following scala code:

I am sure that there is connectivity and the port is open in the address

$machine~> telnet 9200
Connected to
Escape character is '^]'.

Has anyone faced the same issue? Any ideas what can it be?

Thanks in advance!


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
To view this discussion on the web visit
For more options, visit

(system) #2