load方法:
a=sc.textFile("feature/all.txt")
a.collect()
[u"('one', 1)", u"('two', 1)", u"('two', 1)", u"('three', 1)", u"('three', 1)", u"('three', 1)"]
本文轉自張昺華-sky部落格園部落格,原文連結:http://www.cnblogs.com/bonelee/p/7767609.html,如需轉載請自行聯系原作者
load方法:
a=sc.textFile("feature/all.txt")
a.collect()
[u"('one', 1)", u"('two', 1)", u"('two', 1)", u"('three', 1)", u"('three', 1)", u"('three', 1)"]
本文轉自張昺華-sky部落格園部落格,原文連結:http://www.cnblogs.com/bonelee/p/7767609.html,如需轉載請自行聯系原作者