在YARN群集上运行示例wordcount.py程序以计算知识数据集中单词的频率: $ spark-submit --master yarn-client wordcount.py /loudacre/kb/*