HDFS/Hive service unreachable

When you try to establish a connection with HDFS catalog, you might encounter an error indicating that the HDFS or Hive service is unreachable.

Symptoms

The following error message is displayed:

Suppressed: java.lang.RuntimeException: javax.security.auth.login.LoginException: Connect timed out
    ... 74 more
Caused by: javax.security.auth.login.LoginException: Connect timed out
    at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:789)
    at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:597)
    ...
Caused by: java.net.SocketTimeoutException: Connect timed out

The HDFS or Hive service is unreachable from the client machine.

Resolving the problem

To resolve this issue, complete the following steps:

  1. Confirm that the HDFS and Hive services are running on the target cluster.
  2. Verify that the client machine can reach the HDFS and Hive services:
    telnet <hdfs-host> 8020
    telnet hive-host> 9083
  3. Ensure no firewall rules are blocking access to the required ports.
  4. Verify that the client machine has proper network routing to the cluster.