Spark 读取mongo数据
1. 添加mongo的依赖
org.mongodb.spark
mongo-spark-connector_2.11
2.2.0
2. 通过新的SparkSession读取数据
[java]
package com.mongodb.spark_examples;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.sql.SparkSess[……]