congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobLauncherFactory$JobLauncherType.name
Code IndexAdd Tabnine to your IDE (free)

How to use
name
method
in
org.apache.gobblin.runtime.JobLauncherFactory$JobLauncherType

Best Java code snippets using org.apache.gobblin.runtime.JobLauncherFactory$JobLauncherType.name (Showing top 8 results out of 315)

origin: apache/incubator-gobblin

/**
 * Specify job should run in MR mode.
 */
public EmbeddedGobblin mrMode() throws IOException {
 this.sysConfigOverrides.put(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherFactory.JobLauncherType.MAPREDUCE.name());
 this.builtConfigMap.put(ConfigurationKeys.FS_URI_KEY, FileSystem.get(new Configuration()).getUri().toString());
 this.builtConfigMap.put(ConfigurationKeys.MR_JOB_ROOT_DIR_KEY, "/tmp/EmbeddedGobblin_" + System.currentTimeMillis());
 this.distributeJarsFunction = new Runnable() {
  @Override
  public void run() {
   // Add jars needed at runtime to the sys config so MR job launcher will add them to distributed cache.
   EmbeddedGobblin.this.sysConfigOverrides.put(ConfigurationKeys.JOB_JAR_FILES_KEY,
     Joiner.on(",").join(getPrioritizedDistributedJars()));
  }
 };
 return this;
}
origin: apache/incubator-gobblin

/**
 * Create a new {@link JobLauncher}.
 *
 * <p>
 *   This method will never return a {@code null}.
 * </p>
 *
 * @param sysProps system configuration properties
 * @param jobProps job configuration properties
 * @param instanceBroker
 * @param metadataTags
 * @return newly created {@link JobLauncher}
 */
public static @Nonnull JobLauncher newJobLauncher(Properties sysProps, Properties jobProps,
  SharedResourcesBroker<GobblinScopeTypes> instanceBroker, List<? extends Tag<?>> metadataTags) throws Exception {
 String launcherTypeValue =
   sysProps.getProperty(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherType.LOCAL.name());
 return newJobLauncher(sysProps, jobProps, launcherTypeValue, instanceBroker, metadataTags);
}
origin: apache/incubator-gobblin

 return new MRJobLauncher(JobConfigurationUtils.combineSysAndJobProperties(sysProps, jobProps), instanceBroker, metadataTags);
default:
 throw new RuntimeException("Unsupported job launcher type: " + launcherType.get().name());
origin: org.apache.gobblin/gobblin-runtime

 return new MRJobLauncher(JobConfigurationUtils.combineSysAndJobProperties(sysProps, jobProps), instanceBroker, metadataTags);
default:
 throw new RuntimeException("Unsupported job launcher type: " + launcherType.get().name());
origin: org.apache.gobblin/gobblin-runtime

/**
 * Create a new {@link JobLauncher}.
 *
 * <p>
 *   This method will never return a {@code null}.
 * </p>
 *
 * @param sysProps system configuration properties
 * @param jobProps job configuration properties
 * @param instanceBroker
 * @param metadataTags
 * @return newly created {@link JobLauncher}
 */
public static @Nonnull JobLauncher newJobLauncher(Properties sysProps, Properties jobProps,
  SharedResourcesBroker<GobblinScopeTypes> instanceBroker, List<? extends Tag<?>> metadataTags) throws Exception {
 String launcherTypeValue =
   sysProps.getProperty(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherType.LOCAL.name());
 return newJobLauncher(sysProps, jobProps, launcherTypeValue, instanceBroker, metadataTags);
}
origin: org.apache.gobblin/gobblin-runtime

/**
 * Specify job should run in MR mode.
 */
public EmbeddedGobblin mrMode() throws IOException {
 this.sysConfigOverrides.put(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherFactory.JobLauncherType.MAPREDUCE.name());
 this.builtConfigMap.put(ConfigurationKeys.FS_URI_KEY, FileSystem.get(new Configuration()).getUri().toString());
 this.builtConfigMap.put(ConfigurationKeys.MR_JOB_ROOT_DIR_KEY, "/tmp/EmbeddedGobblin_" + System.currentTimeMillis());
 this.distributeJarsFunction = new Runnable() {
  @Override
  public void run() {
   // Add jars needed at runtime to the sys config so MR job launcher will add them to distributed cache.
   EmbeddedGobblin.this.sysConfigOverrides.put(ConfigurationKeys.JOB_JAR_FILES_KEY,
     Joiner.on(",").join(getPrioritizedDistributedJars()));
  }
 };
 return this;
}
origin: org.apache.gobblin/gobblin-runtime

/**
 * Get the {@link LauncherTypeEnum} for this {@link JobState}.
 */
public LauncherTypeEnum getLauncherType() {
 return Enums.getIfPresent(LauncherTypeEnum.class,
   this.getProp(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherFactory.JobLauncherType.LOCAL.name()))
   .or(LauncherTypeEnum.LOCAL);
}
origin: apache/incubator-gobblin

/**
 * Get the {@link LauncherTypeEnum} for this {@link JobState}.
 */
public LauncherTypeEnum getLauncherType() {
 return Enums.getIfPresent(LauncherTypeEnum.class,
   this.getProp(ConfigurationKeys.JOB_LAUNCHER_TYPE_KEY, JobLauncherFactory.JobLauncherType.LOCAL.name()))
   .or(LauncherTypeEnum.LOCAL);
}
org.apache.gobblin.runtimeJobLauncherFactory$JobLauncherTypename

Popular methods of JobLauncherFactory$JobLauncherType

  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now