Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package criteo
    Definition Classes
    com
  • package cuttle

    Core cuttle concepts are defined here.

    Core cuttle concepts are defined here.

    Definition Classes
    criteo
  • package platforms

    Defines useful ExecutionPlatforms:

    Defines useful ExecutionPlatforms:

    • local to fork process locally in a managed way.
    • http to make HTTP calls with rate limiting.
    Definition Classes
    cuttle
  • package http

    Allow to make HTTP calls in a managed way with rate limiting.

    Allow to make HTTP calls in a managed way with rate limiting.

    It uses lolhttp as HTTP client.

    Definition Classes
    platforms
  • package local

    Allow to fork process locally in a managed way.

    Allow to fork process locally in a managed way.

    It provides the exec interpolator that you can use to fork shell scripts:

    exec"""hdfs dfs -cp /from /to"""()

    The script your provide will be forked into another process. Note that if you provide several commands separated by ;' only the first one will be forked and the other ones will be ignored.

    If you really need to run several commands, you can use one of the followed ways:

    1. Chain multiple execs in a for-comprehension. Because of platform mechanism it will require several platform allocations to run completely.

    2. Wrap it in one sh -c' _In this case we cannot guarantee that all process spawned inside this fork will be successfully killed when we kill the parent process._

    Definition Classes
    platforms
  • InlineCommands
  • LocalPlatform
  • LocalProcess

package local

Allow to fork process locally in a managed way.

It provides the exec interpolator that you can use to fork shell scripts:

exec"""hdfs dfs -cp /from /to"""()

The script your provide will be forked into another process. Note that if you provide several commands separated by ;' only the first one will be forked and the other ones will be ignored.

If you really need to run several commands, you can use one of the followed ways:

1. Chain multiple execs in a for-comprehension. Because of platform mechanism it will require several platform allocations to run completely.

2. Wrap it in one sh -c' _In this case we cannot guarantee that all process spawned inside this fork will be successfully killed when we kill the parent process._

Linear Supertypes
AnyRef, Any

Type Members

  1. implicit final class InlineCommands extends AnyVal

    The exec string interpolation.

  2. case class LocalPlatform (maxForkedProcesses: Int) extends ExecutionPlatform with Product with Serializable

    The LocalPlatform handles the execution of locally forked processes.

    The LocalPlatform handles the execution of locally forked processes. The number of concurrently forked processes is limited and can be configured for the platform.

    While waiting for the process to be actually forked, the Job Execution is seen as WAITING in the UI.

    maxForkedProcesses

    The maximum number of concurrently running processes.

  3. class LocalProcess extends AnyRef

    Represent a process to be locally foked.

Inherited from AnyRef

Inherited from Any

Ungrouped