Upgrade elasticsearch 2.0 to 5.2 -indexing not working

HI,

upgraded elasticsearch 2.0 to 5.2. I am able to see old data.when i am trying do index using python 2.7 code(it was working fine with elasticsearch 2.0), the following exception occuring.

File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/indices.py", line 107, in create
params=params, body=body)
File "/usr/local/lib/python2.7/site-packages/elasticsearch/transport.py", line 318, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 123, in perform_request
raise ConnectionError('N/A', str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x10f4b5650>: Failed to establish a new connection: [Errno 61] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x10f4b5650>: Failed to establish a new connection: [Errno 61] Connection refused)

Any help is appreciated.

Thanks

Hey,

have you configured Elasticsearch to listen/bind on interfaces other than the default one? By default Elasticsearch 5 binds to localhost only and thus is not available on the network.

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.