/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_idelasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs)
/usr/local/lib/pyt
我正在使用Python客户端进行弹性搜索,并试图连接到它。我创造了这样的客户: ES_USER = os.getenv("ES_USER")
ES_PASS = os.getenv("ES_PASS")print(f"Setting up ES with HOST={ES_HOST}, USER={ES_USER}, P
试图从Python切换到elasticsearch https://localhost:9200。es.ping()返回False。通过浏览器,我可以用用户名和密码连接到https://localhost:9200 (仅是第一次询问)。def connect_elasticsearch(): es = Elasticsearch(['https://localhost:9200'], bas
我遇到了一个问题,一个停靠的elasticsearch集群,我想用一个简单的python索引脚本来连接它。在执行docker-compose up之后,它会打开集群,还有kibana,但是当它试图通过python脚本连接到ES时,我得到了以下错误: elasticsearch.exceptions.ConnectionErrorlocal driver: local driver: local
elastic:
dr