Kerberos connection timeout

When you try to establish a connection with HDFS catalog, you might encounter a Kerberos connection timeout error.

Symptoms

The following error message is displayed:

Caused by: com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.RuntimeException: javax.security.auth.login.LoginException: Connect timed out

This error typically occurs due to:

  • Malformed Kerberos configuration files
  • Unreachable Key Distribution Center (KDC)

Resolving the problem

To resolve this issue, complete the following steps:

  1. Ensure the KDC server is properly specified in the krb5.conf file.
  2. Use telnet to verify connectivity to the KDC server on port 88:
    telnet <kdc-server> 88
  3. Check that all Kerberos configuration files are correctly formatted and contain valid entries.