Package com.cloudera.kitten.lua

Examples of com.cloudera.kitten.lua.LuaContainerLaunchParameters


  public List<ContainerLaunchParameters> getContainerLaunchParameters() {
    if (!env.isNil(LuaFields.CONTAINERS)) {
     List<ContainerLaunchParameters> clp = Lists.newArrayList();
      Iterator<LuaPair> iter = env.getTable(LuaFields.CONTAINERS).arrayIterator();
      while (iter.hasNext()) {
        clp.add(new LuaContainerLaunchParameters(iter.next().value, conf, localToUris));
      }
      return clp;
    } else if (!env.isNil(LuaFields.CONTAINER)) {
      return ImmutableList.<ContainerLaunchParameters>of(
          new LuaContainerLaunchParameters(env.getTable(LuaFields.CONTAINER), conf, localToUris));
    }
    return ImmutableList.of();
  }
View Full Code Here


  @Override
  public ContainerLaunchParameters getApplicationMasterParameters(ApplicationId applicationId) {
    Map<String, URI> localToUris = mapLocalFiles(applicationId);
    extras.putEnv(LuaFields.KITTEN_LOCAL_FILE_TO_URI, LocalDataHelper.serialize(localToUris));
    return new LuaContainerLaunchParameters(env.getTable(LuaFields.MASTER), conf, localToUris, extras);
  }
View Full Code Here

TOP

Related Classes of com.cloudera.kitten.lua.LuaContainerLaunchParameters

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.