pyspark.sql.SQLContext.getConf#
- SQLContext.getConf(key, defaultValue=<no value>)[source]#
Returns the value of Spark SQL configuration property for the given key.
If the key is not set and defaultValue is set, return defaultValue. If the key is not set and defaultValue is not set, return the system default value.
Added in version 1.3.0.
Examples
>>> sqlContext.getConf("spark.sql.shuffle.partitions") '200' >>> sqlContext.getConf("spark.sql.shuffle.partitions", "10") '10' >>> sqlContext.setConf("spark.sql.shuffle.partitions", "50") >>> sqlContext.getConf("spark.sql.shuffle.partitions", "10") '50'