Read data with Spark, how to control coalesce partitions?

Reading data with Spark (1.6) to elasticseach (2.4) in Java with

JavaEsSpark.esRDD

I am wondering how coalesce is achieved ? (I mean how distribution is done ?)

If it's possible to select a field as distribution key ?

Thanks you,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.