Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Gets an existing SparkSession or, if there is no existing one, creates a new

# Gets an existing SparkSession or, if there is no one, creates a new

s1 = SparkSession.builder.config("k1", "v1").getOrCreate()
s1.conf.get("k1") == s1.sparkContext.getConf().get("k1") == "v1"
# True

s2 = SparkSession.builder.config("k2", "v2").getOrCreate()
s1.conf.get("k1") == s2.conf.get("k1")
# True
s1.conf.get("k2") == s2.conf.get("k2")
# True
Comment

PREVIOUS NEXT
Code Example
Python :: Limits the result count to the number specified 
Python :: 5.4.7 categories python 
Python :: how to get only non-blank entry of list in python 
Python :: numpy stack in new dimension 
Python :: how to xor two element in python 
Python :: scrapy get raw html content of selector innerhtml 
Python :: django rest framework encrypt passwors 
Python :: count number of repeats in list python 
Python :: mask and then fillnan# 
Python :: ejercicios con def en python 
Python :: install formio data python library 
Python :: gfrequency listing in pandas 
Python :: python text to speech 
Python :: python run subprocess and get output 
Python :: python writelignes 
Python :: 2checkout python 
Python :: quadre 
Python :: ggt euklidischer algorithmus python 
Python :: Use if a not trusted message will come up 
Python :: without using sum add item in list python 
Python :: ev. DJANGO CREATE ACC 
Python :: arrow.get(null) 
Python :: djb2 hash function c explained 
Python :: python drop extension 
Python :: loess dataframe 
Python :: matplotlib librosa show spectrogram 
Python :: Python String to array using list comprehension 
Python :: Introduction to distutils in python 
Python :: email python library get all messages 
Python :: custom auth django channels 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =