and i try put it on my elasticsearch with
curl -H 'Content-type: application/json' -XPOST 'localhost:9200:news/new -d @/home/sang/Downloads/elasticsearch-6.3.2/fast.json
but as you can see, there is error
not_x_content_exception","reason":"Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes
This doesn't look like valid json. First of all, it starts with a [. Check your file e.g. with https://jsonlint.com/ that it is valid first. Second: you seem to try to put several documents at once. This is only possible using the _bulk endpoint, which follows a specific bulk format.
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.