private boolean verifyNodeRegistration ( DatanodeRegistration nodeReg , String ipAddr ) throws IOException { assert ( hasWriteLock ( ) ) ; return inHostsList ( nodeReg , ipAddr ) ; }
Checks if the node is not on the hosts list . If it is not then it will be disallowed from registering .