airflow.contrib.hooks.gcp_dataproc_hook¶
Module Contents¶
- 
class airflow.contrib.hooks.gcp_dataproc_hook._DataProcJob(dataproc_api, project_id, job, region='global', job_error_states=None, num_retries=5)[source]¶
- Bases: - airflow.utils.log.logging_mixin.LoggingMixin
- 
class airflow.contrib.hooks.gcp_dataproc_hook._DataProcJobBuilder(project_id, task_id, cluster_name, job_type, properties)[source]¶
- 
class airflow.contrib.hooks.gcp_dataproc_hook._DataProcOperation(dataproc_api, operation, num_retries)[source]¶
- Bases: - airflow.utils.log.logging_mixin.LoggingMixin- Continuously polls Dataproc Operation until it completes. 
- 
class airflow.contrib.hooks.gcp_dataproc_hook.DataProcHook(gcp_conn_id='google_cloud_default', delegate_to=None, api_version='v1beta2')[source]¶
- Bases: - airflow.contrib.hooks.gcp_api_base_hook.GoogleCloudBaseHook- Hook for Google Cloud Dataproc APIs. - 
cancel(self, project_id, job_id, region='global')[source]¶
- Cancel a Google Cloud DataProc job. :param project_id: Name of the project the job belongs to :type project_id: str :param job_id: Identifier of the job to cancel :type job_id: int :param region: Region used for the job :type region: str :returns A Job json dictionary representing the canceled job 
 
-