int port = dn.getSelfAddr().getPort();
System.out.println("Adding node with IP:port : " + ipAddr + ":"
+ port + " to rack " + racks[i]);
StaticMapping.addNodeToRack(ipAddr + ":" + port, racks[i]);
}
dn.runDatanodeDaemon();
synchronized (dataNodes) {
dataNodes.add(new DataNodeProperties(dn, newconf, dnArgs));
}
} catch (IOException e) {
LOG.error("Exception when creating datanode", e);