How to insert data into ElasticSearch from a json file using Java Bulk API?

If you have a file then I'd recommend using the REST Client instead and POST the file content to _bulk endpoint.

I don't think you can do that with the Java high level client (REST or Transport).
Might be wrong though but AFK ATM.