Search code examples
hadoopapache-sparkhdfskerberoskeytab

Authenticate scripts on HDFS using key.tab file


How to authenticate scripts on hadoop hdfs in a kerberos environment using key-tab file. we get GSS authentication error


Solution

  • kinit -kt `whoami`.keytab `whoami`@INTRANET.SERVER.COM
    

    placing the key-tab file in hdfs user home folder and adding above in start of all scripts worked for me.