Search in sources :

Example 1 with DriverLauncher

use of org.apache.reef.client.DriverLauncher in project mist by snuspl.

the class MistLauncher method runFromConf.

/**
 * Run the Mist Driver for the given Configuration.
 * @param driverConf The Configuration for the driver
 * @return a status of the driver
 * @throws InjectionException on configuration errors
 */
public LauncherStatus runFromConf(final Configuration driverConf) throws InjectionException {
    final DriverLauncher launcher = DriverLauncher.getLauncher(mistRuntimeConf);
    final Configuration mistDriverConf = getDriverConfiguration(driverConf);
    final LauncherStatus status = timeOut == 0 ? launcher.run(mistDriverConf) : launcher.run(mistDriverConf, timeOut);
    LOG.log(Level.INFO, "Mist completed: {0}", status);
    return status;
}
Also used : DriverConfiguration(org.apache.reef.client.DriverConfiguration) YarnClientConfiguration(org.apache.reef.runtime.yarn.client.YarnClientConfiguration) LocalRuntimeConfiguration(org.apache.reef.runtime.local.client.LocalRuntimeConfiguration) LauncherStatus(org.apache.reef.client.LauncherStatus) DriverLauncher(org.apache.reef.client.DriverLauncher)

Aggregations

DriverConfiguration (org.apache.reef.client.DriverConfiguration)1 DriverLauncher (org.apache.reef.client.DriverLauncher)1 LauncherStatus (org.apache.reef.client.LauncherStatus)1 LocalRuntimeConfiguration (org.apache.reef.runtime.local.client.LocalRuntimeConfiguration)1 YarnClientConfiguration (org.apache.reef.runtime.yarn.client.YarnClientConfiguration)1