Created
November 7, 2019 00:27
-
-
Save abronte/5815043c076338f2ff922a55d6f7e997 to your computer and use it in GitHub Desktop.
Pyspark Gateway spark context initialization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark_gateway import PysparkGateway | |
pg = PysparkGateway() | |
from pyspark import SparkContext, SparkConf | |
conf = conf.set('spark.io.encryption.enabled', 'true') | |
sc = SparkContext(gateway=pg.gateway, conf=conf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment