File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ class SparkKubernetesConfig:
1313 Configuration parameters required to launch a k8s driver in client mode.
1414 """
1515
16+ def __post_init__ (self ):
17+ self .driver_ip = socket .gethostbyname (socket .gethostname ())
18+ self .driver_name = socket .gethostname ()
19+
1620 # Spark Application name for this session.
1721 application_name : str
1822
@@ -32,10 +36,10 @@ class SparkKubernetesConfig:
3236 default_executor_memory : Optional [int ] = 2000
3337
3438 # Name of a driver host.
35- driver_name : Optional [str ] = socket . gethostname ()
39+ driver_name : Optional [str ] = None
3640
3741 # IP address of a driver host.
38- driver_ip : Optional [str ] = socket . gethostbyname ( socket . gethostname ())
42+ driver_ip : Optional [str ] = None
3943
4044 # Prefix to use when naming executors.
4145 executor_name_prefix : Optional [str ] = None
You can’t perform that action at this time.
0 commit comments