spark-local下创建统计文件
cd /opt/module/spark-local
mkdir input
vim a.txt
hello world
hello spark
peace and love
bin/spark-shell
如下图会产生自带的sc和spark,我们用sc做统计字符
spark-local下创建统计文件
cd /opt/module/spark-local
mkdir input
vim a.txt
hello world
hello spark
peace and love
bin/spark-shell
如下图会产生自带的sc和spark,我们用sc做统计字符