Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the "ELASTIC_ENDPOINT"? #219

Open
xiaoToby opened this issue Dec 6, 2023 · 1 comment
Open

What is the "ELASTIC_ENDPOINT"? #219

xiaoToby opened this issue Dec 6, 2023 · 1 comment

Comments

@xiaoToby
Copy link

xiaoToby commented Dec 6, 2023

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!

@jimdowling
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants