我在Windows中使用Kerberos配置了HA Cluster hadoop-2.7.2安全性。它在Jdk7上工作正常但在Jdk8(Jdk1.8.0.131)
上失败hdfs namenode -bootstrapStandby
使用上述命令格式化第二个namenode失败log details
7/05/12 10:59:00 ERROR namenode.NameNode: Failed to start namenode.
java.io.IOException: java.lang.RuntimeException: java.io.IOException: org.apache.hadoop.security.authentication.client.AuthenticationException: Authentication failed, status: 403, message: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos credentails)
at org.apache.hadoop.hdfs.server.namenode.ha.BootstrapStandby.run(BootstrapStandby.java:425)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1454)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1554)