Package org.apache.hive.ptest.execution.conf

Examples of org.apache.hive.ptest.execution.conf.Host


    if(!hostsToTerminate.isEmpty()) {
      LOG.info("Replacing " + hostsToTerminate);
      terminate(hostsToTerminate, true);
      Set<NodeMetadata> nodes = createNodes(hostsToTerminate.size());
      for (NodeMetadata node : nodes) {
        executionContext.addHost(new Host(publicIp(node), mUser, mSlaveLocalDirs,
            mNumThreads));
      }
    }
    Preconditions.checkState(hostsNotRemoved.isEmpty(),
        "Host " + hostsNotRemoved + " was in bad hosts but could not be removed");
View Full Code Here


      throws CreateHostsFailedException, ServiceNotAvailableException {
    try {
      Set<NodeMetadata> nodes = createNodes(mNumHosts);
      Set<Host> hosts = Sets.newHashSet();
      for (NodeMetadata node : nodes) {
        hosts.add(new Host(publicIp(node), mUser, mSlaveLocalDirs,
          mNumThreads));
      }
      return new ExecutionContext(this, hosts, mWorkingDir.getAbsolutePath(),
          mPrivateKey);
    } finally {
View Full Code Here

      throws CreateHostsFailedException, ServiceNotAvailableException {
    try {
      Set<NodeMetadata> nodes = createNodes(mNumHosts);
      Set<Host> hosts = Sets.newHashSet();
      for (NodeMetadata node : nodes) {
        hosts.add(new Host(node.getHostname(), mUser, mSlaveLocalDirs,
            mNumThreads));
      }
      return new ExecutionContext(this, hosts, mWorkingDir.getAbsolutePath(),
          mPrivateKey);
    } finally {
View Full Code Here

      Set<Host> hosts = Sets.newHashSet();
      for(String alias : Splitter.on(" ").omitEmptyStrings().split(context.getString("hosts", ""))) {
        Context hostContext = new Context(context.getSubProperties(
            Joiner.on(".").join("host", alias, "")));
        LOG.info("Processing host {}: {}", alias, hostContext.getParameters().toString());
        hosts.add(new Host(hostContext.getString("host"), hostContext.getString("user"),
            Iterables.toArray(Splitter.on(",").trimResults().split(hostContext.getString("localDirs")), String.class),
            hostContext.getInteger("threads")));
      }
      Preconditions.checkState(hosts.size() > 0, "no hosts specified");
      ExecutionContextProvider hostProvider = new FixedExecutionContextProvider(hosts, workingDirectory, privateKey);
View Full Code Here

    if(!hostsToTerminate.isEmpty()) {
      LOG.info("Replacing " + hostsToTerminate);
      terminate(hostsToTerminate, true);
      Set<NodeMetadata> nodes = createNodes(hostsToTerminate.size());
      for (NodeMetadata node : nodes) {
        executionContext.addHost(new Host(node.getHostname(), mUser, mSlaveLocalDirs,
            mNumThreads));
      }
    }
    Preconditions.checkState(hostsNotRemoved.isEmpty(),
        "Host " + hostsNotRemoved + " was in bad hosts but could not be removed");
View Full Code Here

        .put("branch", BRANCH)
        .put("logDir", logDir.getAbsolutePath())
        .put("repository", REPOSITORY)
        .put("repositoryName", REPOSITORY_NAME)
        .build();
    host = new Host(HOST, USER, new String[] { LOCAL_DIR }, 2);
  }
View Full Code Here

        .put("branch", BRANCH)
        .put("logDir", logDir.getAbsolutePath())
        .put("repository", REPOSITORY)
        .put("repositoryName", REPOSITORY_NAME)
        .build();
    host = new Host(HOST, USER, new String[] { LOCAL_DIR }, 2);
  }
View Full Code Here

TOP

Related Classes of org.apache.hive.ptest.execution.conf.Host

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.