You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried that tuitorial(https://github.com/logicalclocks/hopsworks-tutorials/blob/master/advanced_tutorials/recommender-system/3_build_index.ipynb), I met that error.
The logs:
Traceback (most recent call last):
File “/root/hopsworks/recommender-system/build_index.py”, line 55, in
client = OpenSearch(**opensearch_api.get_default_py_config())
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/site-packages/hopsworks/core/opensearch_api.py”, line 66, in get_default_py_config
url = furl(self._get_opensearch_url())
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/site-packages/hopsworks/core/opensearch_api.py”, line 33, in _get_opensearch_url
return os.environ[constants.ENV_VARS.ELASTIC_ENDPOINT_ENV_VAR]
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/os.py”, line 679, in getitem
raise KeyError(key) from None
KeyError: ‘ELASTIC_ENDPOINT’
I am confused about the ELASTIC_ENDPOINT, what is it , and how to fix it? help!
The text was updated successfully, but these errors were encountered:
If you are running this on app.hopsworks.ai, it won't work.
Currently, this example only works when run as a job on a Hopsworks cluster. In that case, we set the ELASTIC_ENDPOINT env variable, which points to OpenSearch in Hopsworks.
When I tried that tuitorial(https://github.com/logicalclocks/hopsworks-tutorials/blob/master/advanced_tutorials/recommender-system/3_build_index.ipynb), I met that error.
The logs:
Traceback (most recent call last):
File “/root/hopsworks/recommender-system/build_index.py”, line 55, in
client = OpenSearch(**opensearch_api.get_default_py_config())
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/site-packages/hopsworks/core/opensearch_api.py”, line 66, in get_default_py_config
url = furl(self._get_opensearch_url())
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/site-packages/hopsworks/core/opensearch_api.py”, line 33, in _get_opensearch_url
return os.environ[constants.ENV_VARS.ELASTIC_ENDPOINT_ENV_VAR]
File “/kvm/miniconda3/envs/hopsworks/lib/python3.9/os.py”, line 679, in getitem
raise KeyError(key) from None
KeyError: ‘ELASTIC_ENDPOINT’
I am confused about the ELASTIC_ENDPOINT, what is it , and how to fix it? help!
The text was updated successfully, but these errors were encountered: