If you want to extract data from Elasticsearch into a file format on HDFS you can use any of the provided mechanisms in the ES-Hadoop package to target the Elasticsearch indices you want to export and target HDFS as the desired output location.
You can realize this in a variety of ways, one of which includes creating an external Hive table (backed by ES) and a new Hive table (backed by HDFS) and doing an INSERT ... SELECT statement to transfer the data.
For more information on ES-Hadoop, you can take a look at the documentation pages here.
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.