控制台反馈:elasticsearch.exceptions.ConnectionError: ConnectionError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))) caused by: ProtocolError(('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
我想用python 连接elastic search, 但是连接失败报错了。这是为什么呢,求解答
检查端口 检查ip 检查网络连接 检查防火墙
Elasticsearch函数的scheme参数有http和https两种形式,写错了就会报这个错误。写对了还会出现一堆warnings。使用下面代码忽略warnings
import urllib3
urllib3.disable_warnings()