To import a JSON file into Elasticsearch, we will use the
elasticdump package. It is a set of import and export tools used for Elasticsearch. It makes it easier to copy, move, and save indexes. To install
elasticdump, we will require
npm and Node.js as prerequisites.
In this section,
npm along with Node.js will be installed. This section covers the installation of
npm and Node.js on Ubuntu and Windows separately.
npm on Ubuntu, perform the following steps:
sudo curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
As shown in the preceding screenshot, the command will add the official Node.js ...