Skip to content

Fallback to winkerberos if kerberos is not available (#504)#587

Merged
csringhofer merged 1 commit intocloudera:masterfrom
csringhofer:winkerberos
Jun 26, 2025
Merged

Fallback to winkerberos if kerberos is not available (#504)#587
csringhofer merged 1 commit intocloudera:masterfrom
csringhofer:winkerberos

Conversation

@csringhofer
Copy link
Copy Markdown
Collaborator

Winkerberos is an alternative to kerberos package on Windows and has the same api, so can be used as a drop in replacement.

Based on another PR:
#504

The difference is that the current patch prefers kerberos if both are available to avoid the breaking existing worklflows. setup.py is also not modified. To use winkerberos it has to be installed independently from impyla and impyla should be installed without [kerberos] extra.

@csringhofer csringhofer force-pushed the winkerberos branch 2 times, most recently from f4605bf to 7943f05 Compare June 25, 2025 14:21
# Try importing kerberos, then winkerberos as fallback. Report the original exception for kerberos.
try:
import kerberos
except ImportError as original_ex:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe log something about kerberos ImportError and fallback here?

Winkerberos is an alternative to kerberos package on Windows and
has the same api, so can be used as a drop in replacement.

Based on another PR:
cloudera#504

The difference is that the current patch prefers kerberos if both are
available to avoid the breaking existing workflows. setup.py is
also not modified. To use winkerberos it has to be installed
independently from impyla and impyla should be installed without
[kerberos] extra.
@csringhofer csringhofer merged commit 70518ff into cloudera:master Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants