Package co.cask.cdap.internal.app.runtime.spark.inmemory

Examples of co.cask.cdap.internal.app.runtime.spark.inmemory.InMemorySparkContextBuilder


  private synchronized AbstractSparkContextBuilder getBuilder(CConfiguration conf) {
    if (contextBuilder == null) {
      String mrFramework = hConf.get(MRConfig.FRAMEWORK_NAME, MRConfig.LOCAL_FRAMEWORK_NAME);
      if ("local".equals(mrFramework)) {
        contextBuilder = new InMemorySparkContextBuilder(conf);
      } else {
        throw new RuntimeException("Spark does not run in distributed mode right now");
      }
    }
    return contextBuilder;
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.app.runtime.spark.inmemory.InMemorySparkContextBuilder

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.