Undo the change to SparkPi and add another example.

I do not find any examples using saveAsTextFile to save files on hdfs. So as I ran SparkPi example, I can not see any output to indicate it works or not. Using println to print on stdout will require users to examine the output across the machines of a cluster. A simple result file on hdfs will be better to see if it works.