Connecting to Elasticsearch cluster in cloud from Django using connections.create_connection API

(satyam) #1

I am working on connecting Django to Elastic Search cluster held in cloud. To do so I am using the connections.create_connection API. I am able to connect to my local ElasticSearch cluster using: connections.create_connection(host= 'localhost', http_auth=('user', 'password')) but when I try connecting to cluster in the cloud using: connections.create_connection(host= '',http_auth=('user', 'lpassword')) , I am getting error:
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x03xxxxx>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x03Exxxxx>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed). Would appreciate if anyone can help me with the error and connecting to the cluster in the cloud.

(system) #2

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