Skip to content

Commit

Permalink
Move Hive configuration to Apache Hive provider
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk committed Jul 24, 2023
1 parent 2ac237b commit 3d271ec
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 18 deletions.
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

0 comments on commit 3d271ec

Please sign in to comment.