airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elad (Jira)" <>
Subject [jira] [Commented] (AIRFLOW-5328) EmrCreateJobFlowOperator success when EMR isn't ready
Date Sun, 01 Sep 2019 13:48:00 GMT


Elad commented on AIRFLOW-5328:

[~Swalloow] EmrJobFlowSensor doesn't have the functionality I'm after.

It asks for state of the JobFlow until it reaches a terminal state.

You use this sensor after submitted a Job to check for its progress.

I'm looking for a way to check the EMR cluster state regardless of a specific job.

Either by sensor or by EmrCreateJobFlowOperator not to return until the Cluster is ready.


I don't see the point by EmrCreateJobFlowOperator returning immediately then submit a Job
and have that job hang because the cluster is on BOOTSTRAPPING. I want to submit jobs only
when the cluster is ready.

> EmrCreateJobFlowOperator success when EMR isn't ready
> -----------------------------------------------------
>                 Key: AIRFLOW-5328
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: aws, operators
>    Affects Versions: 1.10.4
>            Reporter: Elad
>            Priority: Major
> EmrCreateJobFlowOperator returns almost instantly.
> It shouldn't return until the Emr cluster id ready.
> It doesn't make sense to submit tasks to EMR when the cluster isn't ready.
> Currently, tasks are submitted and waiting until the cluster will finish its initialization. 
> This can be checked with Waiter:
> []
> something like:
> {code:java}
> waiter = client.get_waiter('cluster_running').wait(ClusterId=response['JobFlowId'], WaiterConfig={'Delay':
32, 'MaxAttempts': 60}){code}

This message was sent by Atlassian Jira

View raw message