Package org.apache.hadoop.hdfs.server.datanode

Examples of org.apache.hadoop.hdfs.server.datanode.DataStorage$MergeThread


        DatanodeInfo blockTargets[] = xferTargets[i];
        for (int t = 0; t < blockTargets.length; t++) {
          DatanodeInfo dnInfo = blockTargets[t];
          DatanodeRegistration receivedDNReg;
          receivedDNReg = new DatanodeRegistration(dnInfo.getName());
          receivedDNReg.setStorageInfo(new DataStorage(nsInfo, dnInfo
              .getStorageID(), null), dnInfo.getStorageID());
          receivedDNReg.setInfoPort(dnInfo.getInfoPort());
          Block[] bi = new Block[] { blocks[i] };
          nameNode.blockReceivedAndDeleted(receivedDNReg, bi);
        }
View Full Code Here


    }

    void register() throws IOException {
      // get versions from the namenode
      nsInfo = nameNode.versionRequest();
      dnRegistration.setStorageInfo(new DataStorage(nsInfo, "", null), "");
      String storageId = DataNode.createNewStorageId(dnRegistration.getPort());
      dnRegistration.setStorageID(storageId);
      // register datanode
      dnRegistration = nameNode.register(dnRegistration,
          DataTransferProtocol.DATA_TRANSFER_VERSION);
View Full Code Here

        for(int t = 0; t < blockTargets.length; t++) {
          DatanodeInfo dnInfo = blockTargets[t];
          DatanodeRegistration receivedDNReg;
          receivedDNReg = new DatanodeRegistration(dnInfo.getName());
          receivedDNReg.setStorageInfo(
              new DataStorage(nsInfo, dnInfo.getStorageID(), null),
                          dnInfo.getStorageID());
          receivedDNReg.setInfoPort(dnInfo.getInfoPort());
          Block[] bi = new Block[] {blocks[i]};
          nameNode.blockReceivedAndDeleted( receivedDNReg, bi);
        }
View Full Code Here

      switch (nodeType) {
      case NAME_NODE:
        storage = new NNStorage(version);
        break;
      case DATA_NODE:
        storage = new DataStorage(version, "doNotCare", null);
        if (version.layoutVersion <= FSConstants.FEDERATION_VERSION) {
          File nsRoot = NameSpaceSliceStorage.getNsRoot(namespaceId, parent[i]);
          Properties props = new Properties();
          props.setProperty(NameSpaceSliceStorage.NAMESPACE_ID,
              String.valueOf(version.getNamespaceID()));
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.datanode.DataStorage$MergeThread

Copyright © 2018 www.massapicom. 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.