操作系统版本Ubuntu 22.04.4 LTS上使用Elasticsearch时候报错,报错信息如下:
elasticsearch.UnsupportedProductError: The client noticed that the server is not Elasticsearch and we do not support this unknown product
问题:Elasticsearch的版本过高了。目前版本为 8.13.0 。
解决方法:先卸载Elasticsearch版本,重新指定安装一个低的版本,如:
pip3 uninstall elasticsearch
pip3 install elasticsearch==7.13.1