Skip to content

Commit

Permalink
move out get_installed_sasl
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeshmu committed Jun 18, 2023
1 parent c49168e commit f6b2dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhive/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __init__(
# Password doesn't matter in NONE mode, just needs to be nonempty.
password = 'x'

self._transport = thrift_sasl.TSaslClientTransport(lambda : get_installed_sasl(host=host, sasl_auth=sasl_auth, service=kerberos_service_name, username=username, password=password), sasl_auth, socket)
self._transport = thrift_sasl.TSaslClientTransport(lambda: get_installed_sasl(host=host, sasl_auth=sasl_auth, service=kerberos_service_name, username=username, password=password), sasl_auth, socket)
else:
# All HS2 config options:
# https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-Configuration
Expand Down

0 comments on commit f6b2dce

Please sign in to comment.