astronomer.providers.amazon.aws.hooks.emr¶
Classes¶
The EmrContainerHookAsync interact with AWS EMR EKS Virtual Cluster |
|
A thin wrapper to interact with AWS EMR API |
|
EmrJobFlowHookAsync is wrapper Interact with AWS EMR.Using Aiobotocore client makes API |
Module Contents¶
- class astronomer.providers.amazon.aws.hooks.emr.EmrContainerHookAsync(virtual_cluster_id, *args, **kwargs)[source]¶
Bases:
astronomer.providers.amazon.aws.hooks.base_aws.AwsBaseHookAsync
The EmrContainerHookAsync interact with AWS EMR EKS Virtual Cluster to run, poll jobs and return job status Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHook.- Parameters:
virtual_cluster_id (str) – Cluster ID of the EMR on EKS virtual cluster
- virtual_cluster_id¶
- class astronomer.providers.amazon.aws.hooks.emr.EmrStepSensorHookAsync(job_flow_id, step_id, *args, **kwargs)[source]¶
Bases:
astronomer.providers.amazon.aws.hooks.base_aws.AwsBaseHookAsync
A thin wrapper to interact with AWS EMR API
Additional arguments may be specified and are passed down to the underlying AwsBaseHook.
- For more details see here.
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook
- Parameters:
job_flow_id (str) – id of the JobFlow to add steps to
step_id (str) – step to check the state of
client_type – boto3.client client_type. Eg ‘s3’, ‘emr’ etc
resource_type – boto3.resource resource_type. Eg ‘dynamodb’ etc
config – Configuration for botocore client.
- job_flow_id¶
- step_id¶
- async emr_describe_step()[source]¶
Make an API call with boto3 and get details about the cluster step.
- For AWS API definition see here::
- Returns:
AWS EMR.Client.describe_step Api response Dict
- Return type:
Dict[str, Any]
- class astronomer.providers.amazon.aws.hooks.emr.EmrJobFlowHookAsync(*args, **kwargs)[source]¶
Bases:
astronomer.providers.amazon.aws.hooks.base_aws.AwsBaseHookAsync
EmrJobFlowHookAsync is wrapper Interact with AWS EMR.Using Aiobotocore client makes API call to get cluster-level details by job_flow_id. Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHookAsync.- async get_cluster_details(job_flow_id)[source]¶
Using Aiobotocore client makes API call to
describe_cluster
get the cluster details, from cluster details fetch the cluster status :param job_flow_id: job_flow_id to check the state of cluster