本文整理汇总了Python中airflow.contrib.hooks.emr_hook.EmrHook.describe_step方法的典型用法代码示例。如果您正苦于以下问题:Python EmrHook.describe_step方法的具体用法?Python EmrHook.describe_step怎么用?Python EmrHook.describe_step使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类airflow.contrib.hooks.emr_hook.EmrHook
的用法示例。
在下文中一共展示了EmrHook.describe_step方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_emr_response
# 需要导入模块: from airflow.contrib.hooks.emr_hook import EmrHook [as 别名]
# 或者: from airflow.contrib.hooks.emr_hook.EmrHook import describe_step [as 别名]
def get_emr_response(self):
emr = EmrHook(aws_conn_id=self.aws_conn_id).get_conn()
self.log.info('Poking step %s on cluster %s', self.step_id, self.job_flow_id)
return emr.describe_step(ClusterId=self.job_flow_id, StepId=self.step_id)
示例2: get_emr_response
# 需要导入模块: from airflow.contrib.hooks.emr_hook import EmrHook [as 别名]
# 或者: from airflow.contrib.hooks.emr_hook.EmrHook import describe_step [as 别名]
def get_emr_response(self):
emr = EmrHook(aws_conn_id=self.aws_conn_id).get_conn()
_log.info('Poking step {0} on cluster {1}'.format(self.step_id, self.job_flow_id))
return emr.describe_step(ClusterId=self.job_flow_id, StepId=self.step_id)