aws-samples / sagemaker-studio-sparkmagic-lib

MIT No Attribution
7 stars 8 forks source link

Fix Kerberos configuration for external KDC EMR's #6

Closed knaresh closed 3 years ago

knaresh commented 3 years ago

Description EMR supports different kerberos configurations(https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos-options.html). Our tooling generates kerberos configuration for all files. Customer is having trouble using generated for External KDC configuration. This commit fixes them

1) TickerLifeTime is apparently optional parameter. we default it to 24h if not present

2) KDC server for EMR realm is set as external KDC server and not internal KDC server based on master node. Master node is stillused for other configurations

3) DHCP setting derived from /etc/resolv.conf are used to map realm values

4) Fix EMR URL issue found with private links and update README accordingly

Testing Done

Build a tar file

python setup.py sdist

install on studio and tested with emr cluster

/opt/conda/bin/pip3 install --prefix=/opt/conda sagemaker_studio_sparkmagic_lib-0.1.2.tar.gz

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.