From this page for the elasticsearch hadoop SDK, I can not find how to configure number_of_shards when creating one index automatically like
.option("es.resource.write", "log-{dateHour}")
In this doc, it menthioned it can use index setting API, but number_of_shards can only be set during index creation.
I tried
.option("es.index.number_of_shards", 10)
.option("es.index.refresh_interval", 10)
but it does not looks like work, becuase when I query the index setting, the number_of_shards for the one created is still 1.
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.