Class/Object

ksb.csle.component.runner

PySparkRunner

Related Docs: object PySparkRunner | package runner

Permalink

final class PySparkRunner[P] extends BasePredictiveAnalysisRunner[Any, BatchRunnerInfo, Any]

:: ApplicationDeveloperApi ::

Runner that gets session which derived from Spark context created by YARN.

Annotations
@Deprecated
Linear Supertypes
BasePredictiveAnalysisRunner[Any, BatchRunnerInfo, Any], BaseRunner[Any, BatchRunnerInfo, Any], BaseDoer, Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PySparkRunner
  2. BasePredictiveAnalysisRunner
  3. BaseRunner
  4. BaseDoer
  5. Logging
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PySparkRunner(o: BatchRunnerInfo)

    Permalink

    o

    Object that contains message ksb.csle.common.proto.RunnerProto.SparkRunnerInfo PySparkRunnerInfo containing attributes are as follows:

    • pyEntryPath: python file path for spark driver code. (required) Default path value ("/pyML/autosparkml/bridge/call_trainer.py") is highly recommended.
    • sparkArgs: Spark argument message to be passed to spark (optional) Spark arguement message contains belowed parameters.
    • inJson: method parameter passing to spark (deprecated) As of KSB v0.8.1, this paramter does not need to set any more.

    SparkRunnerInfo

    message SparkRunnerInfo {
     required string pyEntryPath = 1 [default = "/pyML/autosparkml/bridge/call_trainer.py"];
     optional SparkArgs sparkArgs = 1;
     optional bool inJson = 2 [default = false];
    }

    SparkArgsInfo

    message SparkArgs {
      optional string appName = 1;
      optional string master =  2 [default = "local[*]"];
      optional string deployMode = 3;
      optional string mainClass = 4;
      optional string conf = 5;
      optional string executorCores = 7;
      optional string memory = 8;
      optional string driverMemory = 9;
      optional string executerMemory = 10;
      optional string numExecutors = 11;
      optional string totalCores = 12;
      optional string extraArgs = 13;
      repeated string confOptions = 14;
      optional string jars = 15;
      optional string pyFiles = 16;
      optional string mainJar = 17;
      optional string sparkVersion = 18 [default = "2.1.1"];
    }

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getSession: Any

    Permalink
    Definition Classes
    PySparkRunner → BaseRunner
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def init(_params: Any): Any

    Permalink
    Definition Classes
    PySparkRunner → BaseRunner
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def run(a: Any): Any

    Permalink
    Definition Classes
    BasePredictiveAnalysisRunner → BaseRunner
  19. def stop: Unit

    Permalink
    Definition Classes
    PySparkRunner → BaseRunner
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def trainOrPredict(df: Any): Any

    Permalink
    Definition Classes
    PySparkRunner → BasePredictiveAnalysisRunner
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BasePredictiveAnalysisRunner[Any, BatchRunnerInfo, Any]

Inherited from BaseRunner[Any, BatchRunnerInfo, Any]

Inherited from BaseDoer

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped