SparkSQL创建RDD:<2>通过创建json格式的RDD创建DataFrame【Java,Scala纯代码】
Java版:package com.bjsxt.sparksql.dataframe;import java.util.Arrays;import org.apache.spark.SparkConf;import org.apache.spark.api.java.JavaRDD;import org.apache.spark.api.java.JavaSparkContex...