Apologies if this is out there, but I can't seem to figure it out. I have a folder called 'data' that consists of 10,000 geo json files.
I want to be able to upload the entire folder at once. I've tried curl -XPOST "http://localhost:9200/customer/customer/1/_bulk" --data-binary "@data"
But this gives me:
Warning: Couldn't read data from file "data", this makes an empty
Warning: POST.
No handler found for uri [/customer/customer/1/_bulk] and method [POST]
ok so next step, figure out how to loop over my files. Could I do a python loop over the folder and then have the ".json" file go in right after the @ symbol? Or, is there a better method. I know of things like pycurl?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.