Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Macbook pro M1 (13.0 (22A8380) Ventura)
opensearch-dsl 2.0.1
opensearch-py 2.1.1
opensearch-py-ml 1.0.0
Describe the issue:
I’m trying to follow along with this guide but having trouble at the load model step.
load_model_output = ml_client.load_model(model_id)
However, the load fails with a resource error:
TransportError Traceback (most recent call last)
Cell In[23], line 1
----> 1 load_model_output = ml_client.load_model(model_id)
2 print(load_model_output)
File ~/Desktop/super-search/venv/lib/python3.10/site-packages/opensearch_py_ml/ml_commons/ml_commons_client.py:78, in MLCommonClient.load_model(self, model_id)
67 """
68 This method loads model into opensearch cluster using ml-common plugin's load model api
69
(...)
73 :rtype: object
74 """
76 API_URL = f"{ML_BASE_URI}/models/{model_id}/_load"
---> 78 return self._client.transport.perform_request(
79 method="POST",
80 url=API_URL,
81 )
File ~/Desktop/super-search/venv/lib/python3.10/site-packages/opensearchpy/transport.py:408, in Transport.perform_request(self, method, url, headers, params, body)
406 raise e
407 else:
--> 408 raise e
410 else:
411 # connection didn't fail, confirm it's live status
...
--> 301 raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
302 status_code, error_message, additional_info
303 )
TransportError: TransportError(500, 'm_l_resource_not_found_exception', 'no eligible node found')
Am I supposed to have a specific multicpu set up to use the ml-commons portion of the demo? I believe the model upload portion was successful because I can get the model info and status:
Configuration:
Running opensearch cluster with docker:
version: "3"
services:
opensearch-node:
image: opensearchproject/opensearch:latest
container_name: opensearch-node
environment:
- discovery.type=single-node
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
- "OPENSEARCH_HOSTS=http://opensearch-node:9200"
Relevant Logs or Screenshots: