简体   繁体   中英

How to create elasticsearch node client in python

Wanted to know if anyone has created a node client for elasticsearch in python language. I am looking at elasticsearch-py documentation and its not very clear on node client creation part.

I have an elasticsearch cluster and have been loading several millions of records easily with the basic client. but now I need to load a billion records dataset, for which I am thinking to use node client

You just need to start bin/elasticsearch script and pass it -Des.node.client=true as a parameter to indicate that this is a node client. You can find an example here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM