You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would have expected that task config would appear upstream of create_spark_app_on_emr_serverless but that hasn't happened:
Furthermore when I execute the DAG task create_spark_app_on_emr_serverless fails with err:
Traceback (most recent call last):
File "/usr/local/airflow/.local/lib/python3.10/site-packages/airflow/providers/amazon/aws/operators/emr.py", line 535, in execute
response = self.hook.conn.create_application(
TypeError: botocore.client.ClientCreator._create_api_method.._api_call() argument after ** must be a mapping, not PlainXComArg
From that error message I assume that the correct value is not getting passed to create_spark_app_on_emr_serverless. I don't know why that is so.
Please can someone tell me how to pass the value returned from task config to the config parameter of task create_spark_app_on_emr_serverless?
note that I have verified that return_value from task config is as expected
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Amazon's EmrServerlessCreateApplicationOperator operator. I've gotten the basic functionality working like this:
However that value passed to parameter
config
is sufficiently complex that I'd like to construct it in upstream tasks and pass it via xcom because:Here's what I have:
I would have expected that task
config
would appear upstream ofcreate_spark_app_on_emr_serverless
but that hasn't happened:Furthermore when I execute the DAG task create_spark_app_on_emr_serverless fails with err:
From that error message I assume that the correct value is not getting passed to
create_spark_app_on_emr_serverless
. I don't know why that is so.Please can someone tell me how to pass the value returned from task config to the config parameter of task
create_spark_app_on_emr_serverless
?note that I have verified that
return_value
from taskconfig
is as expectedBeta Was this translation helpful? Give feedback.
All reactions