Codota Logo
EmbeddedGobblin.setConfiguration
Code IndexAdd Codota to your IDE (free)

How to use
setConfiguration
method
in
gobblin.runtime.embedded.EmbeddedGobblin

Best Java code snippets using gobblin.runtime.embedded.EmbeddedGobblin.setConfiguration (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: voldemort/voldemort

private void runDistcp(Path from, Path to) throws Exception {
  info("sourcePath: " + from + ", destinationPath: " + to);
  EmbeddedGobblin embeddedGobblin = new EmbeddedGobblinDistcp(from, to).mrMode();
  // Used for global throttling"
  embeddedGobblin.distributeJar("lib/*");
  for (Map.Entry<String, String> entry : this.props.entrySet()) {
    if (entry.getKey() != null && (entry.getKey()).startsWith(ATTR_PREFIX)) {
      String key = (entry.getKey()).substring(ATTR_PREFIX.length());
      embeddedGobblin.setConfiguration(key, entry.getValue());
    }
  }
  JobExecutionResult result =  embeddedGobblin.run();
  if (!result.isSuccessful()) {
    throw new RuntimeException("Distcp job failed!", result.getErrorCause());
  }
}
origin: com.linkedin.gobblin/gobblin-runtime

/**
 * Enable state store.
 */
public EmbeddedGobblin useStateStore(String rootDir) {
 this.setConfiguration(ConfigurationKeys.STATE_STORE_ENABLED, "true");
 this.setConfiguration(ConfigurationKeys.STATE_STORE_ROOT_DIR_KEY, rootDir);
 return this;
}
origin: com.linkedin.gobblin/gobblin-runtime

/**
 * Manually set a key-value pair in the job configuration. Input is of the form <key>:<value>
 */
public EmbeddedGobblin setConfiguration(String keyValue) {
 List<String> split = KEY_VALUE_SPLITTER.splitToList(keyValue);
 if (split.size() != 2) {
  throw new RuntimeException("Cannot parse " + keyValue + ". Expected <key>:<value>.");
 }
 return setConfiguration(split.get(0), split.get(1));
}
gobblin.runtime.embeddedEmbeddedGobblinsetConfiguration

Javadoc

Manually set a key-value pair in the job configuration. Input is of the form :

Popular methods of EmbeddedGobblin

  • run
    Run the Gobblin job. This call will block until the job is done.
  • setTemplate
    Set a JobTemplate to use.
  • distributeJar
    Specify that the input jar should be added to workers' classpath on distributed mode.
  • distributeJarByClassWithPriority
    Specify that the input jar should be added to workers' classpath on distributed mode. Jars with lowe
  • distributeJarWithPriority
    Specify that the input jar should be added to workers' classpath on distributed mode. Jars with lowe
  • getDefaultSysConfig
    This is the base Config used for the job, containing all default configurations. Subclasses can over
  • getPrioritizedDistributedJars
  • getSysConfig
  • loadCoreGobblinJarsToDistributedJars
    This returns the set of jars required by a basic Gobblin ingestion job. In general, these need to be
  • runAsync
    Launch the Gobblin job asynchronously. This method will return when the Gobblin job has started.
  • setJobTimeout
    Set the timeout for the Gobblin job execution from ISO-style period.
  • setLaunchTimeout
    Set the timeout for launching the Gobblin job from ISO-style period.
  • setJobTimeout,
  • setLaunchTimeout,
  • setShutdownTimeout,
  • sysConfig,
  • usePlugin

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now