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

ReadTimeError showed when upload json to elasticsearch server #30

Open
RonnSanji opened this issue Apr 19, 2018 · 1 comment
Open

ReadTimeError showed when upload json to elasticsearch server #30

RonnSanji opened this issue Apr 19, 2018 · 1 comment

Comments

@RonnSanji
Copy link

My elasticsearch is installed in a server with ip 10.0.109.124:9200

Command I am using :
jsonpyes --data public_food_entities__20180404.json --bulk http://10.0.109.124:9200 --index foodentites --type public --import --check --thread 8

Error:
elasticsearch.exceptions.ConnectionTimeout: ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host='10.0.109.124', port=9200): Read timed out. (read timeout=10))

@xros
Copy link
Owner

xros commented Apr 25, 2018

It's about the settings on ES server. Try to set the timeout option larger. There's another issue the same: #29 When you're trying to import large data, it's strongly you set the timeout larger than 30 seconds. It takes some time to split files into pieces using jsonpyes and it takes some time for the ES server to handle multiple connections from jsonpyes client.

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

No branches or pull requests

2 participants