Login
Remember
Register
Ask a Question
What are the main attributes used in SparkConf?
0
votes
asked
Mar 13, 2022
in
PySpark
by
rajeshsharma
What are the main attributes used in SparkConf?
sparkconf
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 13, 2022
by
rajeshsharma
Following is the list of main attributes used in SparkConf:
set(key, value): This attribute is used for setting the configuration property.
setSparkHome(value): This attribute enables the setting Spark installation path on worker nodes.
setAppName(value): This attribute is used for setting the application name.
setMaster(value): This attribute is used to set the master URL.
get(key, defaultValue=None): This attribute supports getting a configuration value of a key.
...