Spark and system configurations¶
The configuration of the Java properties and the Spark environment can be done by getting the singleton instance of the configuration class as follows:
conf = gl.get_configuration()
Follows the description of this object:
-
class
Configuration
[source]¶ Class containing all the information regarding the system environment and the Spark environment
-
set_app_name
(name)[source]¶ Sets the name of the application in spark, By default it is called “gmql_api”
Parameters: name – string Returns: None
-
set_master
(master)[source]¶ Set the master of the spark cluster By default it is “local[*]”
Parameters: master – string Returns: None
-