New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.2.0-beta1 and Elasticsearch 2.0 transport error #614
Comments
What's the exception that you are getting? What is the address being used to connect? |
Stepping through it in the debugger, in
I can definitely connect to both the hostname, and the ip, from the Spark cluster. |
While useful, the post still doesn't answer the two questions above. |
Exception below, which I think answers both questions. Addresses/IP's obscured: Each host is running two ES instances. Four hosts in total, for eight instances. The instances are all happy in one cluster. If I remove the custom hostname, everything works as it should - the only difference is the output from
|
Cheers. Will look into it - as you mentioned likely the parsing goes wrong which causes the underlying socket to not use the hostname (instead of the IP). |
I am having a similar issue. On org.elasticsearch.hadoop.rest.RestClient the code tries to get the starting index (searching for /) and ending index (searching for ]) for the ip address. The problem is the inet string is in the format "/:" without any "]". This cause the response to be -1 for ending index which then causes an exception in the next line. For reference I am using elasticsearch-spark_2.10 2.2.0-m1 and my elasticsearch node is version 2.0.0. I am specifying the node in spark using the following config option. conf.set("es.nodes", "") Am I doing anything wrong? |
@jvaralves best to open a different ticket and provide more information such as what is the exception, what is your "inet string" and further more, if you don't specify any value to |
Fixed in master. Publishing a new dev snapshot as we speak. |
I think this is an es-spark problem, but it might also be an ES 2 problem
I have an ES 2.0 cluster which has a custom
publish.host
set:network.publish_host: _ec2:publicDns_
this produces the following in
/_nodes/transport
:The http_address is not parsed correctly, and the Rest client attempts to connect to a completely invalid address.
The text was updated successfully, but these errors were encountered: