创建dataframe的几种方式——读取json格式的RDD
一、Java代码SparkConf conf = new SparkConf();conf.setMaster("local").setAppName("jsonRDD");JavaSparkContext sc = new JavaSparkContext(conf);SQLContext sqlContext = new SQLContext(sc);JavaRDD<Str...