Spark SQL 查询中 Coalesce 和 Repartition 暗示(Hint)

若是你使用 Spark RDD 或者 DataFrame 编写程序,咱们能够经过 coalesce或 repartition 来修改程序的并行度:php val data = sc.newAPIHadoopFile(xxx).coalesce(2).map(xxxx)java 或sql val data = sc.newAPIHadoopFile(xxx).repartition(2).map(x
相关文章
相关标签/搜索