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