Examples of ExecutorInfo


Examples of backtype.storm.generated.ExecutorInfo

        boolean globalFailed = false;
        while (execIter.hasNext()) {
          final ExecutorSummary execSummary = execIter.next();
          final String componentId = execSummary.get_component_id();
          sb.append("component_id:").append(componentId).append(", ");
          final ExecutorInfo execInfo = execSummary.get_executor_info();
          final int taskStart = execInfo.get_task_start();
          final int taskEnd = execInfo.get_task_end();
          sb.append("task_id(s) for this executor:").append(taskStart).append("-")
              .append(taskEnd).append(", ");
          final String host = execSummary.get_host();
          sb.append("host:").append(host).append(", ");
          final int port = execSummary.get_port();
View Full Code Here

Examples of backtype.storm.generated.ExecutorInfo

                boolean globalFailed = false;
                while(execIter.hasNext()){
                    ExecutorSummary execSummary = execIter.next();
                    String componentId = execSummary.get_component_id();
                    sb.append("component_id:").append(componentId).append(", ");
                    ExecutorInfo execInfo = execSummary.get_executor_info();
                    int taskStart = execInfo.get_task_start();
                    int taskEnd = execInfo.get_task_end();
                    sb.append("task_id(s) for this executor:").append(taskStart).append("-").append(taskEnd).append(", ");
                    String host = execSummary.get_host();
                    sb.append("host:").append(host).append(", ");
                    int port = execSummary.get_port();
                    sb.append("port:").append(port).append(", ");
View Full Code Here

Examples of mesos.ExecutorInfo

      String execPath = conf.get("mapred.mesos.executor.path", null);
      if (execPath == null) {
        execPath = new File("bin/mesos-executor").getCanonicalPath();
      }
      byte[] initArg = conf.get("mapred.job.tracker").getBytes("US-ASCII");
      return new ExecutorInfo(execPath, initArg);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of org.apache.mesos.Protos.ExecutorInfo

              .setTaskId(TaskID.newBuilder().setValue(task.getTaskId()))
              .setSlaveId(slaveId)
              .addAllResources(resources)
              .setData(ByteString.copyFrom(taskInBytes));

      ExecutorInfo executor = ExecutorInfo.newBuilder()
          .setCommand(CommandUtil.create(executorPath))
          .setExecutorId(getExecutorId(task.getTaskId()))
          .setName(EXECUTOR_NAME)
          .setSource(getInstanceSourceName(config, task.getInstanceId()))
          .addResources(Resources.makeMesosResource(Resources.CPUS, ResourceSlot.EXECUTOR_CPUS))
View Full Code Here

Examples of org.apache.mesos.Protos.ExecutorInfo

              .setTaskId(TaskID.newBuilder().setValue(task.getTaskId()))
              .setSlaveId(slaveId)
              .addAllResources(resources)
              .setData(ByteString.copyFrom(taskInBytes));

      ExecutorInfo executor = ExecutorInfo.newBuilder()
          .setCommand(CommandUtil.create(executorPath))
          .setExecutorId(getExecutorId(task.getTaskId()))
          .setName(EXECUTOR_NAME)
          .setSource(getInstanceSourceName(config, task.getInstanceId()))
          .addResources(
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.