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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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