AWS elastic search error “[Errno 8] nodename nor servname provided, or not known.”

前端 未结 1 1502
Happy的楠姐
Happy的楠姐 2021-02-13 03:28

I created one AWS elasticsearch instance. I want to access it using a python script. I specified my AWS configuration (access key, secret key, region). I am using below code to

1条回答
  •  爱一瞬间的悲伤
    2021-02-13 03:57

    Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known seems to indicate that the elasticsearch client is not able to resolve the hostname. It could possibly be because you include the protocol https:// specified in the host.

    Change that line to host = 'kbckjsdkcdn.us-east-1.es.amazonaws.com' to see if it works. Also the example comment you have there, seems to indicate that the protocol should not be included in the host variable.

    0 讨论(0)
提交回复
热议问题