You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "krystian-git (via GitHub)" <gi...@apache.org> on 2026/01/19 08:25:53 UTC

Re: [I] Airflow 3 Spark worker k8s pod entrypoint corrupts task json payload from args (double quotes are stripped) [airflow]

krystian-git commented on issue #55561:
URL: https://github.com/apache/airflow/issues/55561#issuecomment-3767056876

   Hi, how would you intercept workload and save to file, to maybe use --json-path instead of --json-load in SparkSubmitOperator subclass, which uses "pod_overeride" to setup some settings, like:
   ```self.executor_config = {
               "pod_override": k8s.V1Pod(
                   metadata=k8s.V1ObjectMeta(labels={"spark-role": "driver"}),
                   spec=k8s.V1PodSpec(
                       init_containers=[self._build_init_container_spec(pod_env)],
                       containers=[
                           k8s.V1Container(
                               name="base",
                               env=pod_env,
                               image=self.image,
                               image_pull_policy="IfNotPresent",
                               resources=k8s.V1ResourceRequirements(
                                   limits={
                                       "cpu": str(driver_cores),
                                       "memory": "32Gi",
                                   },
                                   requests={
                                       "cpu": str(driver_cores),
                                       "memory": driver_memory.to_k8s_spec(),
                                   },
                               ),
                               security_context=k8s.V1SecurityContext(
                                   run_as_user=1001,
                                   run_as_group=1000,
                               ),
                           ),
                       ],
                   ),
               ),
           }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org