Why does collect() work fine but count() and take() give me error in Spark?

前端 未结 0 1991
攒了一身酷
攒了一身酷 2021-01-31 05:08
rdd = sc.textFile("test_file.txt").cache()
rdd.collect()

The above returns me this:

[\'my number is 0\', \'my number is 1\', \'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题