摘要: 数据读写文件数据读写>>> textFile = sc.textFile("file:///opt/module/spark/mycode/rdd/word.txt")>>> textFile.first()'Hello Hadoop'#若word.txt不存在,直到执行才会报错 '''saveAs 阅读全文
posted @ 2024-01-27 22:14 听着DJ读童话 阅读(8) 评论(0) 推荐(0)