Pivotal Knowledge Base

Follow

GPHDFS Failed with Error "Can't get Kerberos realm"

Environment

  • Pivotal Greenplum Database (GPDB) 4.3.x
  • Operating System- Red Hat Enterprise Linux 6.x

Symptom

GPHDFS failed with below error when the user is trying to insert data to an external table:

ERROR: external table gphdfs protocol command ended with error. Exception in thread "main" java.lang.IllegalArgumentException: Can't get Kerberos realm (seg137 bdtcstr31n2:40001 pid=40718) 
DETAIL:
at org.apache.hadoop.security.HadoopKerberosName.setConfiguration(HadoopKerberosName.java:65)
at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:261)
at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:246)
at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:775)
at org.apache.hadoop.
Command: 'gphdfs://clickfoxuat:8020/user/a_opsetl_uat/customer_profile'

Resolution

Following instructions need to be verified to correct the ERROR:

  1. Check /etc/krb5.conf on every node(master as well as Segment) and make sure the correct realm(s) are there for account
  2. Make sure klist, kinit, and hdfs -ls commands are working on the Clusters.
  3. JAVA version should be the same on all the nodes, if it is not, ensure to correct it.

After verifying above if you are still not able to resolve the issue, further investigation is required to look into the issue

Additional Information 

Refer to Understanding GPHDFS Configurations for more information on GPHDFS.

Comments

Powered by Zendesk