mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Forbid Elasticsearch 8 client or server (#780)
This commit is contained in:
parent
f5c2dcfc9d
commit
3c3ffd7403
@ -236,14 +236,9 @@ def check_cluster_version(es_client, logger):
|
|||||||
f"Elasticsearch version {major_version} does not support NLP models. Please upgrade Elasticsearch to the latest version"
|
f"Elasticsearch version {major_version} does not support NLP models. Please upgrade Elasticsearch to the latest version"
|
||||||
)
|
)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
elif major_version < 9:
|
||||||
# PyTorch was upgraded to version 2.3.1 in 8.15.2
|
|
||||||
# and is incompatible with earlier versions
|
|
||||||
if sem_ver < (8, 15, 2):
|
|
||||||
import torch
|
|
||||||
|
|
||||||
logger.error(
|
logger.error(
|
||||||
f"Eland uses PyTorch version {torch.__version__} which is incompatible with Elasticsearch versions prior to 8.15.2. Please upgrade Elasticsearch to at least version 8.15.2"
|
"Eland 9.x does not support Elasticsearch 8.x. Please upgrade Elasticsearch first."
|
||||||
)
|
)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -86,7 +86,7 @@ setup(
|
|||||||
keywords="elastic eland pandas python",
|
keywords="elastic eland pandas python",
|
||||||
packages=find_packages(include=["eland", "eland.*"]),
|
packages=find_packages(include=["eland", "eland.*"]),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"elasticsearch>=8.3,<9",
|
"elasticsearch>=9,<10",
|
||||||
"pandas>=1.5,<3",
|
"pandas>=1.5,<3",
|
||||||
"matplotlib>=3.6",
|
"matplotlib>=3.6",
|
||||||
"numpy>=1.2.0,<2",
|
"numpy>=1.2.0,<2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user