我有两台机器的火花集群,当我运行火花流应用程序时,我收到以下错误:
Exception in thread "main" org.apache.spark.SparkException: Checkpoint RDD ReliableCheckpointRDD[11] at print at StatefulNetworkWordCount.scala:78(1) has different number of partitions from original RDD MapPartitionsRDD[10] at updateStateByKey at StatefulNetworkWordCount.scala:76(2)
at org.apache.spark.rdd.ReliableRDDCheckpointData.doCheckpoint(ReliableRDDCheckpointData.scala:73)
at org.apache.spark.rdd.RDDCheckpointData.checkpoint(RDDCheckpointData.scala:74)
如何在不是 HDFS/Cassandra/任何其他数据存储的文件系统上提供检查点目录?
我想到了两种可能的解决方案,但我不知道如何编码:
有一个远程目录,对两个工作人员都是本地的
为两个工作人员指定一个远程目录
有什么建议么 ?