diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml index 4cef07dee1de7..f87b000aad792 100644 --- a/airflow/config_templates/config.yml +++ b/airflow/config_templates/config.yml @@ -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: diff --git a/airflow/providers/apache/hive/provider.yaml b/airflow/providers/apache/hive/provider.yaml index 79125e2cc3d89..4b260f5b10750 100644 --- a/airflow/providers/apache/hive/provider.yaml +++ b/airflow/providers/apache/hive/provider.yaml @@ -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: ~ diff --git a/docs/apache-airflow-providers-apache-hive/configurations-ref.rst b/docs/apache-airflow-providers-apache-hive/configurations-ref.rst new file mode 100644 index 0000000000000..5885c9d91b6e8 --- /dev/null +++ b/docs/apache-airflow-providers-apache-hive/configurations-ref.rst @@ -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 diff --git a/docs/apache-airflow-providers-apache-hive/index.rst b/docs/apache-airflow-providers-apache-hive/index.rst index 2676761c73f37..35167cc0b8096 100644 --- a/docs/apache-airflow-providers-apache-hive/index.rst +++ b/docs/apache-airflow-providers-apache-hive/index.rst @@ -42,6 +42,7 @@ :maxdepth: 1 :caption: References + Configuration Python API <_api/airflow/providers/apache/hive/index> .. toctree:: diff --git a/docs/apache-airflow/configurations-ref.rst b/docs/apache-airflow/configurations-ref.rst index eb34b10c35928..7a32f1790deab 100644 --- a/docs/apache-airflow/configurations-ref.rst +++ b/docs/apache-airflow/configurations-ref.rst @@ -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 ` +* :doc:`Configuration Reference for Apache Hive Provider ` .. note:: For more information see :doc:`/howto/set-config`.