Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Gets an existing SparkSession or, if there is no existing one, creates a new one based on the options set in this builder

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

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

# In case an existing SparkSession is returned

s2 = SaprkSession.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 :: radice n esima python 
Python :: how to create a joystick in pyqt4 
Python :: Gets an existing SparkSession or, if there is no existing one, creates a new 
Python :: 5.4.7 categories python 
Python :: staff user is not restricting permission in django 
Python :: python triée plusieurs fois avec virgule 
Python :: convert excel cellname to index python 
Python :: sqlite3 with flask web application CRUD pdf 
Python :: oscillating fan 
Python :: specify dtype when creating array 
Python :: set list start at 1 python 
Python :: permutations in python 
Python :: text input tkinter 
Python :: gtk entry focus python 
Python :: unittest sleep 
Python :: how to change array of arrays to simpe array 
Python :: tf.slice 
Python :: indentation error python 
Python :: resizing windows with background tkinter 
Python :: python how to geather and spread using pandas 
Python :: Math expressions with matplotlib 
Python :: turn off subplot 
Python :: python array of last n months 
Python :: spacy text annotation dict comprehension 
Python :: how to subtract up everything in a list python 
Python :: Unpacking list using an asterisk 
Python :: spevify datatype of column 
Python :: python get all items exept las from array 
Python :: python interface kenee 
Python :: programação orientada a objetos python - Pessoa 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =