maxmax(key=None)Find the maximum item in this RDD.Parameters:key– A function used to generate key for comparing例子:meanmean()Compute the mean of this R... Read More
posted @ 2015-12-30 21:38 loadofleaf Views(192) Comments(0) Diggs(0) Edit
首先在$SPARK_HOME主目录下建立一个test文件夹,里面放一些文件(注意文件全部内容都可被hadoop用户访问,否则运行会出现permission denied的错误)打开pyspark: ./bin/pyspark读入文件整行切割(flatMap, s.split())映射数量(map, ... Read More
posted @ 2015-12-30 15:14 loadofleaf Views(126) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutations-ii/Given a collection of numbers that might contain duplicates, return all possible unique permutations... Read More
posted @ 2015-12-30 11:33 loadofleaf Views(271) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutation-sequence/The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the ... Read More
posted @ 2015-12-30 11:29 loadofleaf Views(488) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/permutations/Given a collection ofdistinctnumbers, return all possible permutations.For example,[1,2,3]have the foll... Read More
posted @ 2015-12-30 10:30 loadofleaf Views(307) Comments(0) Diggs(0) Edit