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

[hadoop] AuthenticationTokenSerializers #5

Open
Montana opened this issue Aug 20, 2021 · 0 comments
Open

[hadoop] AuthenticationTokenSerializers #5

Montana opened this issue Aug 20, 2021 · 0 comments

Comments

@Montana
Copy link

Montana commented Aug 20, 2021

I went ahead and serialized the token in a file in HDFS, using the AuthenticationTokenSerializer and used the version of the setConnectorInfo method which accepts a file name.

Unfortunately, these methods are provided in an inner-class, to avoid breaking the interface API. The methods in question are:

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

When trying to use DelegationTokens with MapReduce, often times the Token cannot be found in cache, would anyone recommend using a Token Renewer? Something like:

dttr.expirationDate =
          UserGroupInformation.getLoginUser().doAs(
            new PrivilegedExceptionAction<Long>() {
              @Override
              public Long run() throws Exception {
                return dttr.token.renew(dttr.conf);
              }
            });

To make sure, I added the following system property to the JVM invocation:

-Dsun.security.krb5.debug=true

In turn enabling a lot of debugging. In this instance is a Token Renewer my best option?

Thank you so much,
Montana Mendy

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

No branches or pull requests

1 participant