Skip to content

Commit 3c3ffd7

Browse files
authored
Forbid Elasticsearch 8 client or server (#780)
1 parent f5c2dcf commit 3c3ffd7

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

eland/cli/eland_import_hub_model.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,9 @@ def check_cluster_version(es_client, logger):
236236
f"Elasticsearch version {major_version} does not support NLP models. Please upgrade Elasticsearch to the latest version"
237237
)
238238
exit(1)
239-
240-
# PyTorch was upgraded to version 2.3.1 in 8.15.2
241-
# and is incompatible with earlier versions
242-
if sem_ver < (8, 15, 2):
243-
import torch
244-
239+
elif major_version < 9:
245240
logger.error(
246-
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"
241+
"Eland 9.x does not support Elasticsearch 8.x. Please upgrade Elasticsearch first."
247242
)
248243
exit(1)
249244

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
keywords="elastic eland pandas python",
8787
packages=find_packages(include=["eland", "eland.*"]),
8888
install_requires=[
89-
"elasticsearch>=8.3,<9",
89+
"elasticsearch>=9,<10",
9090
"pandas>=1.5,<3",
9191
"matplotlib>=3.6",
9292
"numpy>=1.2.0,<2",

0 commit comments

Comments
 (0)