As for Spark 1.6+, the only API that supports customizing partition location is when the RDD is created:
/** Distribute a local Scala collection to form an