項(xiàng)目場(chǎng)景:
提示:這里簡述項(xiàng)目相關(guān)背景:
python第一次操作ES
問題描述
提示:這里描述項(xiàng)目中遇到的問題:
from elasticsearch import Elasticsearch
# 連接es
# es = Elasticsearch()
es = Elasticsearch(['http://10.0.0.1:9200'], http_auth=('ryan', 'axax1234'), timeout=3600)
result = es.indices.create(index='news', ignore=400)
print(result)
提示
The client noticed that the server is not Elasticsearch and we do not support this unknown product
原因分析:
提示:這里填寫問題的分析:
es為了與aws大戰(zhàn),在新的版本中,不再支持apach 2.0開源協(xié)議
解決方案:
提示:這里填寫該問題的具體解決方案:文章來源:http://www.zghlxwxcb.cn/news/detail-514525.html
更換es版本降到7.14以下就可以啦文章來源地址http://www.zghlxwxcb.cn/news/detail-514525.html
pip install Elasticsearch==7.13
到了這里,關(guān)于python第一次操作ES The client noticed that the server is not Elasticsearch and we do not support this unk的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!