var theP1 = sc.textFile("file:///usr/test/people.json") //读取本地var theP2 = sc.textFile("hdfs://master.hadoop/user/root/test/test/people.json") //读取hdfs文件
var theP1 = sc.textFile("file:///usr/test/people.json") //读取本地var theP2 = sc.textFile("hdfs://master.hadoop/user/root/test/test/people.json") //读取hdfs文件