{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The bulk request must be terminated by a newline [\n]"}],"type":"illegal_argument_exception","reason":"The bulk request must be terminated by a newline [\n]"},"status":400}
PS: The file clearly contains an empty line at the end!
Is that the only line in your file? Where is the data you want to index? Have a look at the examples in the documentation. The only action that does not require data is a delete as far as I can remember.
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.