摘要: # 创建RDD url = "file:///home/hadoop/sc.txt" rdd = sc.textFile(url).map(lambda x:x.split(",")) scm = rdd.map(lambda a:[a[0],a[1],int(a[2])]) scm.cache() 阅读全文
posted @ 2022-05-27 22:22 liquorice 阅读(42) 评论(0) 推荐(0)