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

Creating index #107

Open
tinthtoo opened this issue Apr 12, 2022 · 0 comments
Open

Creating index #107

tinthtoo opened this issue Apr 12, 2022 · 0 comments

Comments

@tinthtoo
Copy link

Hello
After downloading geonames_index, I run this command as stated in the instruction:
docker run -d -p 127.0.0.1:9200:9200 -v $(pwd)/geonames_index/:/usr/share/elasticsearch/data elasticsearch:5.5.2

Then I run location.py which include 3 lines of the code:

from mordecai import Geoparser
geo = Geoparser()
geo.geoparse("I traveled from Oxford to Ottawa.")

Then I received index not found error. I can connect to localhost:9200, but not to localhost:9200/geonames.

So I run curl -XPUT "localhost:9200/geonames" -H "Content-Type: application/json" -d @geonames_mapping.json to create index.
Then, localhost:9200/geonames looks ok.
So I run location.py again. This time I receive list out of index error.
So I thought I needed to create index properly and follow the instructions here https://github.com/openeventdata/es-geonames to create geonames index.
When running the file geonames_elasticsearch_loader.py as part of creating the index, I received an error saying I run out of space.
I'm new to all these and not successful trying to fix out of space issue and stuck here.
I would like to use this for one of research projects. I'd appreciate it very much if someone can help me.
Thank you very much.
Best regards
Tint

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

1 participant