Apache Pig (https://pig.apache.org/) is a tool that's frequently used to store and manipulate data in datastores. It can be very handy if you need to import some comma-separated values (CSV) in Elasticsearch in a very fast way.
Indexing data with Apache Pig
Getting ready
You need an up and running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
You need a working Pig installation. Depending on your operating system, you should follow the instructions at http://pig.apache.org/docs/r0.17.0/start.html.
If you are using macOS X with Homebrew, you can install it with brew install pig.