spark 33G表

 

http://192.168.2.51:4041

http://hadoop1:8088/proxy/application_1512362707596_0006/executors/

 

 

 

 

 

Executors

 

 

 

 

 

 

 

 

 

 

from pyspark.sql import SparkSession

my_spark = SparkSession \
.builder \
.appName("myAppYarn-10g") \
.master('yarn') \
.config("spark.mongodb.input.uri", "mongodb://pyspark_admin:admin123@192.168.2.50/recommendation.article") \
.config("spark.mongodb.output.uri", "mongodb://pyspark_admin:admin123@192.168.2.50/recommendation.article") \
.getOrCreate()

db_rows = my_spark.read.format("com.mongodb.spark.sql.DefaultSource").load().collect()


 

 

 

Summary

Executors

posted @ 2017-12-04 13:13  papering  阅读(419)  评论(0编辑  收藏  举报