src/main/java/org/apache/mesos/hdfs/executor/NameNodeExecutor.java
/**
   * Add tasks to the task list and then start the tasks in the following order : 1) Start Journal
   * Node 2) Receive Activate Message 3) Start Name Node 4) Start ZKFC Node
   **/
Add tasks to the task list and then start the tasks in the following order : 1) Start Journal
Node 2) Receive Activate Message 3) Start Name Node 4) Start ZKFC Node
Add tasks to the task list and then start the tasks in the following order : 1 ) Start Journal Node 2 ) Receive Activate Message 3 ) Start Name Node 4 ) Start ZKFC Node
@Override
  public void launchTask(final ExecutorDriver driver, final TaskInfo taskInfo) {
    executorInfo = taskInfo.getExecutor();
    Task task = new Task(taskInfo);
    if (taskInfo.getTaskId().getValue().contains(HDFSConstants.NAME_NODE_TASKID)) {
      nameNodeTask = task;
      driver.sendStatusUpdate(TaskStatus.newBuilder()
          .setTaskId(nameNodeTask.taskInfo.getTaskId())
          .setState(TaskState.TASK_RUNNING)
          .build());
    } else if (taskInfo.getTaskId().getValue().contains(HDFSConstants.ZKFC_NODE_ID)) {
      zkfcNodeTask = task;
      driver.sendStatusUpdate(TaskStatus.newBuilder()
          .setTaskId(zkfcNodeTask.taskInfo.getTaskId())
          .setState(TaskState.TASK_RUNNING)
          .build());
    }
  }
@ Override public void launchTask ( final ExecutorDriver driver , final TaskInfo taskInfo ) { executorInfo = taskInfo . getExecutor ( ) ; Task task = new Task ( taskInfo ) ; if ( taskInfo . getTaskId ( ) . getValue ( ) . contains ( HDFSConstants . NAME_NODE_TASKID ) ) { nameNodeTask = task ; driver . sendStatusUpdate ( TaskStatus . newBuilder ( ) . setTaskId ( nameNodeTask . taskInfo . getTaskId ( ) ) . setState ( TaskState . TASK_RUNNING ) . build ( ) ) ; } else if ( taskInfo . getTaskId ( ) . getValue ( ) . contains ( HDFSConstants . ZKFC_NODE_ID ) ) { zkfcNodeTask = task ; driver . sendStatusUpdate ( TaskStatus . newBuilder ( ) . setTaskId ( zkfcNodeTask . taskInfo . getTaskId ( ) ) . setState ( TaskState . TASK_RUNNING ) . build ( ) ) ; } }
Add tasks to the task list and then start the tasks in the following order : 1) Start Journal
 Node 2) Receive Activate Message 3) Start Name Node 4) Start ZKFC Node
Add tasks to the task list and then start the tasks in the following order : 1 ) Start Journal Node 2 ) Receive Activate Message 3 ) Start Name Node 4 ) Start ZKFC Node