I suggest you go through this link and understand the technicalities first.
Later try the following steps:
- I suggest you try to use this repo.
- It's an Elasticsearch real-time search and analytics natively integrated with Hadoop and you can follow the documentation provided here to use it.
- The repo is provided by Elasticsearch.
I hope this resolves the issue.