一旱眯、初始化連接SparkConf conf = new SparkConf().setmaster("local").setAppName("test");JavaContext sc =new JavaContext(conf);