Hi, Could you please check kerberos principal name is specified correctly in "hdfs-site.xml", which is used to authenticate against Kerberos. If using _HOST variable in hdfs-site.xml, ensure that hostname is getting resolved and it matches with the principal name.
If keytab file defined in "hdfs-site.xml" is not present you will see this error. So, please verify the path and the keytab filename correctly configured. Also, did you verify manual kinit using the principal name and keytab. Is that working for you? Please share "hdfs-site.xml" config file to know more about your configurations. Regards, Rakesh On Thu, Jun 9, 2016 at 6:21 PM, Hafiz Mujadid <[email protected]> wrote: > Hi, > > I have setup kerbores with hadoop and I am facing following exception when > i start hadoop. > > ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start > namenode. > java.io.IOException: Login failure for admin/admin@queryiorealm from > keytab /usr/local/var/krb5kdc/kadm5.keytab: > javax.security.auth.login.LoginException: Unable to obtain password from > user > > at > org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytab(UserGroupInformation.java:962) > at > org.apache.hadoop.security.SecurityUtil.login(SecurityUtil.java:246) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.loginAsNameNodeUser(NameNode.java:613) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:632) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:811) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:795) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1488) > at > org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1554) > Caused by: javax.security.auth.login.LoginException: Unable to obtain > password from user > > > Can anybody please help me how to get rid of this issue? > > Thanks >
