File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
internal/pkg/object/command/sparkeks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 9494type commandContext struct {
9595 JobsURI string `yaml:"jobs_uri,omitempty" json:"jobs_uri,omitempty"`
9696 WrapperURI string `yaml:"wrapper_uri,omitempty" json:"wrapper_uri,omitempty"`
97+ EventLogURI string `yaml:"event_log_uri,omitempty" json:"event_log_uri,omitempty"`
9798 Properties map [string ]string `yaml:"properties,omitempty" json:"properties,omitempty"`
9899 KubeNamespace string `yaml:"kube_namespace,omitempty" json:"kube_namespace,omitempty"`
99100}
@@ -670,9 +671,10 @@ func applySparkOperatorConfig(execCtx *executionContext) {
670671 // Add default spark properties
671672 sparkApp .Spec .SparkConf [sparkAppNameProperty ] = execCtx .appName
672673
673- if execCtx .logURI != "" {
674- logURI := updateS3ToS3aURI (execCtx .logURI )
675- sparkApp .Spec .SparkConf [sparkEventLogDirProperty ] = logURI
674+ // Set spark event log directory for spark history server
675+ if execCtx .commandContext .EventLogURI != "" {
676+ eventLogURI := updateS3ToS3aURI (execCtx .commandContext .EventLogURI )
677+ sparkApp .Spec .SparkConf [sparkEventLogDirProperty ] = eventLogURI
676678 }
677679
678680 if sparkSubmitParams := getSparkSubmitParameters (jobContext ); sparkSubmitParams != nil {
You can’t perform that action at this time.
0 commit comments