From 2c8e62dbb58c777ca08d1e772af4ecb4fa5aca3a Mon Sep 17 00:00:00 2001 From: vatsrahul1001 Date: Fri, 6 Dec 2024 12:11:11 +0530 Subject: [PATCH 1/2] remove deprecations --- providers/src/airflow/providers/apache/hive/CHANGELOG.rst | 8 ++++++++ providers/src/airflow/providers/apache/hive/hooks/hive.py | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/providers/src/airflow/providers/apache/hive/CHANGELOG.rst b/providers/src/airflow/providers/apache/hive/CHANGELOG.rst index 1213e305cf813..e24114eb379c8 100644 --- a/providers/src/airflow/providers/apache/hive/CHANGELOG.rst +++ b/providers/src/airflow/providers/apache/hive/CHANGELOG.rst @@ -26,6 +26,14 @@ Changelog --------- +main +.... + +.. warning:: + All deprecated classes, parameters and features have been removed from the {provider_name} provider package. + The following breaking changes were introduced: + + * ``Removed deprecated 'GSSAPI' for auth_mechanism. Use KERBEROS instead.`` 8.2.1 ..... diff --git a/providers/src/airflow/providers/apache/hive/hooks/hive.py b/providers/src/airflow/providers/apache/hive/hooks/hive.py index d768743cd459b..dde421e01e69b 100644 --- a/providers/src/airflow/providers/apache/hive/hooks/hive.py +++ b/providers/src/airflow/providers/apache/hive/hooks/hive.py @@ -873,14 +873,6 @@ def get_conn(self, schema: str | None = None) -> Any: auth_mechanism = db.extra_dejson.get("auth_mechanism", "KERBEROS") kerberos_service_name = db.extra_dejson.get("kerberos_service_name", "hive") - # pyhive uses GSSAPI instead of KERBEROS as a auth_mechanism identifier - if auth_mechanism == "GSSAPI": - self.log.warning( - "Detected deprecated 'GSSAPI' for auth_mechanism for %s. Please use 'KERBEROS' instead", - self.hiveserver2_conn_id, # type: ignore - ) - auth_mechanism = "KERBEROS" - # Password should be set if and only if in LDAP or CUSTOM mode if auth_mechanism in ("LDAP", "CUSTOM"): password = db.password From 48abc5d2ca4e86eaffab9dd4c7796ba8ceab6ccd Mon Sep 17 00:00:00 2001 From: vatsrahul1001 <43964496+vatsrahul1001@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:25:41 +0530 Subject: [PATCH 2/2] Update providers/src/airflow/providers/apache/hive/CHANGELOG.rst Co-authored-by: Wei Lee --- providers/src/airflow/providers/apache/hive/CHANGELOG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/src/airflow/providers/apache/hive/CHANGELOG.rst b/providers/src/airflow/providers/apache/hive/CHANGELOG.rst index e24114eb379c8..b55a36bd82cb4 100644 --- a/providers/src/airflow/providers/apache/hive/CHANGELOG.rst +++ b/providers/src/airflow/providers/apache/hive/CHANGELOG.rst @@ -33,7 +33,7 @@ main All deprecated classes, parameters and features have been removed from the {provider_name} provider package. The following breaking changes were introduced: - * ``Removed deprecated 'GSSAPI' for auth_mechanism. Use KERBEROS instead.`` + * Removed deprecated ``GSSAPI`` for ``auth_mechanism.`` Use ``KERBEROS`` instead. 8.2.1 .....