
一、本地数据读写
读取本地文件
>>> textFile = sc.textFile("file:///home/hadoop/temp/word.txt")
>>> textFile.first()
'Hadoop is good'
>>>
写入本地文件
欢迎分享,转载请注明来源:内存溢出

一、本地数据读写
读取本地文件
>>> textFile = sc.textFile("file:///home/hadoop/temp/word.txt")
>>> textFile.first()
'Hadoop is good'
>>>
写入本地文件
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)