pyspark-WordCount統計單詞個數代碼實現

from pyspark import SparkConf, SparkContext # 建立SparkConf和SparkContext conf = SparkConf().setMaster("local").setAppName("wordcount") sc = SparkContext(conf=conf) # 輸入數據 data = ["hello", "world", "he
相關文章
相關標籤/搜索