Examples of DisallowedDatanodeException


Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

      dnAddress = nodeReg.getHost();
    }     

    // check if the datanode is allowed to be connect to the namenode
    if (!verifyNodeRegistration(nodeReg, dnAddress)) {
      throw new DisallowedDatanodeException(nodeReg);
    }

    String hostName = nodeReg.getHost();
     
    // update the datanode's name with ip:port
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

        }
         
        // Check if this datanode should actually be shutdown instead.
        if (nodeinfo != null && shouldNodeShutdown(nodeinfo)) {
          setDatanodeDead(nodeinfo);
          throw new DisallowedDatanodeException(nodeinfo);
        }

        if (nodeinfo == null || !nodeinfo.isAlive) {
          return new DatanodeCommand[]{DatanodeCommand.REGISTER};
        }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

    }

    // Check if this datanode should actually be shutdown instead.
    if (shouldNodeShutdown(node)) {
      setDatanodeDead(node);
      throw new DisallowedDatanodeException(node);
    }
   
    //
    // Modify the (block-->datanode) map, according to the difference
    // between the old and new block report.
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

    }

    // Check if this datanode should actually be shutdown instead.
    if (shouldNodeShutdown(node)) {
      setDatanodeDead(node);
      throw new DisallowedDatanodeException(node);
    }

    // decrement number of blocks scheduled to this datanode.
    node.decBlocksScheduled();
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

      String ip = dnAddress.getHostAddress();
      if (!isNameResolved(dnAddress)) {
        // Reject registration of unresolved datanode to prevent performance
        // impact of repetitive DNS lookups later.
        LOG.warn("Unresolved datanode registration from " + ip);
        throw new DisallowedDatanodeException(nodeReg);
      }
      // update node registration with the ip and hostname from rpc request
      nodeReg.setIpAddr(ip);
      nodeReg.setPeerHostName(hostname);
    }
   
    try {
      nodeReg.setExportedKeys(blockManager.getBlockKeys());
 
      // Checks if the node is not on the hosts list.  If it is not, then
      // it will be disallowed from registering.
      if (!hostFileManager.isIncluded(nodeReg)) {
        throw new DisallowedDatanodeException(nodeReg);
      }
       
      NameNode.stateChangeLog.info("BLOCK* registerDatanode: from "
          + nodeReg + " storage " + nodeReg.getStorageID());
 
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

        }
       
        // Check if this datanode should actually be shutdown instead.
        if (nodeinfo != null && nodeinfo.isDisallowed()) {
          setDatanodeDead(nodeinfo);
          throw new DisallowedDatanodeException(nodeinfo);
        }

        if (nodeinfo == null || !nodeinfo.isAlive) {
          return new DatanodeCommand[]{RegisterCommand.REGISTER};
        }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

    nodeReg.setExportedKeys(blockManager.getBlockKeys());

    // Checks if the node is not on the hosts list.  If it is not, then
    // it will be disallowed from registering.
    if (!inHostsList(nodeReg)) {
      throw new DisallowedDatanodeException(nodeReg);
    }
     
    NameNode.stateChangeLog.info("BLOCK* NameSystem.registerDatanode: "
        + "node registration from " + nodeReg
        + " storage " + nodeReg.getStorageID());
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

        }
       
        // Check if this datanode should actually be shutdown instead.
        if (nodeinfo != null && nodeinfo.isDisallowed()) {
          setDatanodeDead(nodeinfo);
          throw new DisallowedDatanodeException(nodeinfo);
        }
        
        if (nodeinfo == null || !nodeinfo.isAlive) {
          return new DatanodeCommand[]{RegisterCommand.REGISTER};
        }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

      dnAddress = nodeReg.getHost();
    }     

    // check if the datanode is allowed to be connect to the namenode
    if (!verifyNodeRegistration(nodeReg, dnAddress)) {
      throw new DisallowedDatanodeException(nodeReg);
    }

    String hostName = nodeReg.getHost();
     
    // update the datanode's name with ip:port
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException

        }
         
        // Check if this datanode should actually be shutdown instead.
        if (nodeinfo != null && shouldNodeShutdown(nodeinfo)) {
          setDatanodeDead(nodeinfo);
          throw new DisallowedDatanodeException(nodeinfo);
        }

        if (nodeinfo == null || !nodeinfo.isAlive) {
          return DatanodeCommand.REGISTER;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.