Hi I am trying to build hdp cluster with version 2.6.4 in a openshift container. All mine data node are not able to get live. I am getting below error at datanode.
2018-02-23 09:42:00,298 INFO datanode.DataNode (BPServiceActor.java:register(715)) - Block pool BP-856299103-10.128.7.83-1519370425542 (Datanode Uuid dd92bd09-1f92-46ad-b196-61a3befcfe5e) service to node-1/172.30.29.85:8020 beginning handshake with NN
2018-02-23 09:42:00,300 ERROR datanode.DataNode (BPServiceActor.java:run(775)) - Initialization failed for Block pool BP-856299103-10.128.7.83-1519370425542 (Datanode Uuid dd92bd09-1f92-46ad-b196-61a3befcfe5e) service to node-1/172.30.29.85:8020 Datanode denied communication with namenode because hostname cannot be resolved (ip=10.129.2.1, hostname=10.129.2.1): DatanodeRegistration(0.0.0.0:50010, datanodeUuid=dd92bd09-1f92-46ad-b196-61a3befcfe5e, infoPort=50075, infoSecurePort=0, ipcPort=8010, storageInfo=lv=-56;cid=CID-5352b96f-2294-4109-bea4-6aa952bf3951;nsid=565176279;c=0)
at org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager.registerDatanode(DatanodeManager.java:938)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.registerDatanode(FSNamesystem.java:4859)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.registerDatanode(NameNodeRpcServer.java:1424)
at org.apache.hadoop.hdfs.protocolPB.DatanodeProtocolServerSideTranslatorPB.registerDatanode(DatanodeProtocolServerSideTranslatorPB.java:100)
at org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos$DatanodeProtocolService$2.callBlockingMethod(DatanodeProtocolProtos.java:31226)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2351)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2347)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1869)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2347)
I don't know from where it is getting this 10.129.2.1 bold in above error code. I added the /etc/hosts entry and mine DNS are working fine. I tried to search a lot but could not solve it. How can I disable this dns resolve host check.