Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Hive configuration to Apache Hive provider #32777

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1380,24 +1380,6 @@ operators:
type: string
example: ~
default: "False"
hive:
description: ~
options:
default_hive_mapred_queue:
description: |
Default mapreduce queue for HiveOperator tasks
version_added: ~
type: string
example: ~
default: ""
mapred_job_name_template:
description: |
Template for mapred_job_name in HiveOperator, supports the following named parameters
hostname, dag_id, task_id, execution_date
version_added: 2.0.0
type: string
example: ~
default: ~
webserver:
description: ~
options:
Expand Down
20 changes: 20 additions & 0 deletions airflow/providers/apache/hive/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,23 @@ connection-types:
plugins:
- name: hive
plugin-class: airflow.providers.apache.hive.plugins.hive.HivePlugin

config:
hive:
description: ~
options:
default_hive_mapred_queue:
description: |
Default mapreduce queue for HiveOperator tasks
version_added: ~
type: string
example: ~
default: ""
mapred_job_name_template:
description: |
Template for mapred_job_name in HiveOperator, supports the following named parameters
hostname, dag_id, task_id, execution_date
version_added: ~
type: string
example: ~
default: ~
18 changes: 18 additions & 0 deletions docs/apache-airflow-providers-apache-hive/configurations-ref.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

.. http://www.apache.org/licenses/LICENSE-2.0

.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

.. include:: ../exts/includes/providers-configurations-ref.rst
1 change: 1 addition & 0 deletions docs/apache-airflow-providers-apache-hive/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
:maxdepth: 1
:caption: References

Configuration <configurations-ref>
Python API <_api/airflow/providers/apache/hive/index>

.. toctree::
Expand Down
1 change: 1 addition & 0 deletions docs/apache-airflow/configurations-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Some of the providers have their own configuration options, you will find detail
in the provider's documentation. The pre-installed providers that you may want to configure are:

* :doc:`Configuration Reference for Celery Provider <apache-airflow-providers-celery:configurations-ref>`
* :doc:`Configuration Reference for Apache Hive Provider <apache-airflow-providers-apache-hive:configurations-ref>`

.. note::
For more information see :doc:`/howto/set-config`.
Expand Down