sudo ./spark-shell
4.測試代碼以下:html
spark shell 實例 val lines(變量)=sc.textFile("../../helloSpark") lines.count() lines.first() 把文本文件加載成RDD複製給lines的RDD