Package com.vmware.bdd.software.mgmt.plugin.model

Examples of com.vmware.bdd.software.mgmt.plugin.model.NodeInfo


      nodeGroupInfo.setStorageType(group.getStorageType().name());

      // set nodes
      List<NodeInfo> nodeInfos = new ArrayList<NodeInfo>();
      for (NodeEntity node : group.getNodes()) {
         NodeInfo nodeInfo = new NodeInfo();
         nodeInfo.setName(node.getVmName());
         nodeInfo.setHostname(node.getGuestHostName());
         nodeInfo.setIpConfigs(node.convertToIpConfigInfo());
         nodeInfo.setRack(node.getRack());
         nodeInfo.setVolumes(node.getDataVolumnsMountPoint());
         nodeInfos.add(nodeInfo);
      }

      nodeGroupInfo.setNodes(nodeInfos);
      return nodeGroupInfo;
View Full Code Here


      Map<String, String> snnConfig = new HashMap<String, String>();
      snnConfig.put("secondary_namenode_java_heapsize", "1024");
      configs.put("HDFS_SECONDARY_NAMENODE", snnConfig);
      group01.setConfiguration(configs);

      NodeInfo node01 = new NodeInfo();
      node01.setRack("/rack01");
      List<NodeInfo> nodes01 = new ArrayList<>();
      nodes01.add(node01);
      group01.setNodes(nodes01);

      NodeGroupInfo group02 = new NodeGroupInfo();
      group02.setName("worker");
      List<String> roles02 = new ArrayList<>();
      roles02.add("HDFS_DATANODE");
      roles02.add("YARN_NODE_MANAGER");
      group02.setRoles(roles02);

      Map<String, Object> configs02 = new HashMap<String, Object>();
      Map<String, String> dnConfig = new HashMap<String, String>();
      dnConfig.put("dfs_datanode_failed_volumes_tolerated", "2");
      configs02.put("HDFS_DATANODE", dnConfig);
      group02.setConfiguration(configs02);

      NodeInfo node02 = new NodeInfo();
      node02.setRack("/rack02");
      List<NodeInfo> nodes02 = new ArrayList<>();
      nodes02.add(node02);
      group02.setNodes(nodes02);
      group02.setInstanceNum(3);
View Full Code Here

TOP

Related Classes of com.vmware.bdd.software.mgmt.plugin.model.NodeInfo

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.