Packages

o

org.apache.spark.sql.execution.python.streaming.benchmark

BenchmarkTransformWithStateInPySparkStateServer

object BenchmarkTransformWithStateInPySparkStateServer extends App

This spins up standalone TransformWithStateInPySparkStateServer with in-memory state implementations. This is useful for understanding the performance of state intercommunication, since the logic of state processing is really lightweight (compared to the actual implementation leveraging RocksDB).

The instruction to run this benchmark: 1. Build Spark with ./dev/make-distribution.sh 2. cd dist 3. java -classpath "./jars/*" org.apache.spark.sql.execution.python.streaming.benchmark.BenchmarkTransformWithStateInPySparkStateServer To run this with Unix Domain Socket, set the environment variable PYSPARK_UDS_MODE=true

The app will show the port number of the server, which is needed to connect to the server.

Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BenchmarkTransformWithStateInPySparkStateServer
  2. App
  3. DelayedInit
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def args: Array[String]
    Attributes
    protected
    Definition Classes
    App
  5. val arrowTransformWithStateInPySparkMaxRecordsPerBatch: Int
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val errorOnDuplicatedFieldNames: Boolean
  11. final val executionStart: Long
    Definition Classes
    App
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. val groupingKeySchema: StructType
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val isUnixDomainSock: Boolean
  17. val largeVarTypes: Boolean
  18. final def main(args: Array[String]): Unit
    Definition Classes
    App
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. var serverSocketChannel: ServerSocketChannel
  23. var sockPath: File
  24. val spark: SparkSession
  25. val sqlConf: RuntimeConfig
  26. val stateHandleImpl: InMemoryStatefulProcessorHandleImpl
  27. val stateServer: TransformWithStateInPySparkStateServer
  28. var stateServerSocketPort: Int
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. val timeZoneId: String
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def delayedInit(body: => Unit): Unit
    Definition Classes
    App → DelayedInit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) the delayedInit mechanism will disappear

  2. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped