Skip to content

Commit

Permalink
Remove deprecations from Apache hive Provider (#44715)
Browse files Browse the repository at this point in the history
* remove deprecations

* Update providers/src/airflow/providers/apache/hive/CHANGELOG.rst

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
  • Loading branch information
vatsrahul1001 and Lee-W authored Dec 7, 2024
1 parent ee6f6fb commit 8bbba50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions providers/src/airflow/providers/apache/hive/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
.....
Expand Down
8 changes: 0 additions & 8 deletions providers/src/airflow/providers/apache/hive/hooks/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bbba50

Please sign in to comment.