Can't zip RDDs with unequal numbers of partitions: List(1, 2)

Can’t zip RDDs with unequal numbers of partitions: List(1, 2)错误
RDD在做zip操作的时候要保证partition一样,用repartition(1)吧两个RDD的partition都设成1

你可能感兴趣的:(spark,spark,rdd)