Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to krbticket 1.0.3 #107

Merged
merged 1 commit into from
Jan 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chainerio/filesystems/hdfs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from chainerio.filesystem import FileSystem
from chainerio.io import open_wrapper
from krbticket import KrbTicket
from krbticket import KrbTicket, SingleProcessKrbTicketUpdater

import subprocess
import re
Expand Down Expand Up @@ -118,7 +118,8 @@ def _create_connection(self):
# variable. If /etc/krb5.keytab doesn't exist, krbticket
# tries to update the ticket with ``kinit -R`` as much as
# possible.
self.ticket = KrbTicket.get_or_init(self.username)
self.ticket = KrbTicket.get_or_init(
self.username, updater_class=SingleProcessKrbTicketUpdater)
self.ticket.updater_start()

connection = hdfs.connect()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
extras_require={'test': ['pytest', 'flake8', 'autopep8'],
'doc': ['sphinx', 'sphinx_rtd_theme']},
python_requires=">=3.5",
install_requires=['krbticket>=1.0.2', 'pyarrow'],
install_requires=['krbticket>=1.0.3', 'pyarrow'],
include_package_data=True,
zip_safe=False,

Expand Down