This is an automated email from the ASF dual-hosted git repository.

weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 8bbba50d4a8 Remove deprecations from Apache hive Provider (#44715)
8bbba50d4a8 is described below

commit 8bbba50d4a87f8c944465cded15f537b588076ac
Author: vatsrahul1001 <[email protected]>
AuthorDate: Sat Dec 7 09:32:58 2024 +0530

    Remove deprecations from Apache hive Provider (#44715)
    
    * remove deprecations
    
    * Update providers/src/airflow/providers/apache/hive/CHANGELOG.rst
    
    Co-authored-by: Wei Lee <[email protected]>
    
    ---------
    
    Co-authored-by: Wei Lee <[email protected]>
---
 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 1213e305cf8..b55a36bd82c 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 d768743cd45..dde421e01e6 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 @@ class HiveServer2Hook(DbApiHook):
             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

Reply via email to