Package org.apache.mesos

Examples of org.apache.mesos.MesosSchedulerDriver


      public void run() {
        // Have Mesos fill in the current user.
        FrameworkInfo framework = FrameworkInfo.newBuilder().setUser("")
            .setName("Jenkins Framework").build();

        driver = new MesosSchedulerDriver(JenkinsScheduler.this, framework, mesosMaster);

        if (driver.run() != Status.DRIVER_STOPPED) {
          LOGGER.severe("The mesos driver was aborted!");
        }
View Full Code Here


        Credential credential = Credential.newBuilder()
            .setPrincipal(properties.getProperty(PRINCIPAL_KEY))
            .setSecret(ByteString.copyFromUtf8(properties.getProperty(SECRET_KEY)))
            .build();

        return new MesosSchedulerDriver(
            scheduler.get(),
            frameworkInfo.build(),
            MESOS_MASTER_ADDRESS.get(),
            credential);
      } else {
        LOG.warning("Connecting to master without authentication!");
        return new MesosSchedulerDriver(
            scheduler.get(),
            frameworkInfo.build(),
            MESOS_MASTER_ADDRESS.get());
      }
    }
View Full Code Here

          .newBuilder()
          .setUser("")
          .setName("Hadoop: (RPC port: " + jobTracker.port + ","
                   + " WebUI port: " + jobTracker.infoPort + ")").build();

      driver = new MesosSchedulerDriver(this, frameworkInfo, master);
      driver.start();
    } catch (Exception e) {
      // If the MesosScheduler can't be loaded, the JobTracker won't be useful
      // at all, so crash it now so that the user notices.
      LOG.fatal("Failed to start MesosScheduler", e);
View Full Code Here

          .newBuilder()
          .setUser("")
          .setName("Hadoop: (RPC port: " + jobTracker.port + ","
                   + " WebUI port: " + jobTracker.infoPort + ")").build();

      driver = new MesosSchedulerDriver(this, frameworkInfo, master);
      driver.start();
    } catch (Exception e) {
      // If the MesosScheduler can't be loaded, the JobTracker won't be useful
      // at all, so crash it now so that the user notices.
      LOG.fatal("Failed to start MesosScheduler", e);
View Full Code Here

              "Hama: (Master Port: " + conf.get("bsp.groom.rpc.port") + ","
                  + " WebUI port: " + conf.get("bsp.http.groomserver.port")
                  + ")").build();

      String master = conf.get("hama.mesos.master", "local");
      driver = new MesosSchedulerDriver(this, frameworkInfo, master);
      driver.start();
    } catch (Exception e) {
      // If the MesosScheduler can't be loaded, the JobTracker won't be useful
      // at all, so crash it now so that the user notices.
      LOG.fatal("Failed to start MesosScheduler", e);
View Full Code Here

        .setId(FrameworkID.newBuilder().setValue(configuration.getFrameworkId()))
        .setUser(""// let mesos assign
        .build();

    this.scheduler = scheduler;
    this.driver = new MesosSchedulerDriver(scheduler, frameworkInfo, configuration.getMaster());
  }
View Full Code Here

      eagerInitListener.setTaskTrackerManager(taskTrackerManager);
      eagerInitListener.start();
      taskTrackerManager.addJobInProgressListener(eagerInitListener);

      frameworkScheduler = new FrameworkScheduler(this);
      driver = new MesosSchedulerDriver(
          frameworkScheduler, frameworkScheduler.getFrameworkInfo(), master);

      driver.start();
    } catch (Exception e) {
      // If the MesosScheduler can't be loaded, the JT won't be useful at all,
View Full Code Here

      Optional<Protos.Credential> credentials,
      FrameworkInfo frameworkInfo,
      String master) {

    if (credentials.isPresent()) {
      return new MesosSchedulerDriver(scheduler, frameworkInfo, master, credentials.get());
    } else {
      return new MesosSchedulerDriver(scheduler, frameworkInfo, master);
    }
  }
View Full Code Here

            if(id!=null) {
                finfo.setId(FrameworkID.newBuilder().setValue(id).build());
            }
           
           
            MesosSchedulerDriver driver =
                    new MesosSchedulerDriver(
                      _scheduler,
                      finfo.build(),
                      (String) conf.get(CONF_MASTER_URL));
           
            driver.start();
            LOG.info("Waiting for scheduler to initialize...");
            initter.acquire();
            LOG.info("Scheduler initialized...");
        } catch(IOException e) {
            throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.apache.mesos.MesosSchedulerDriver

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.