Object

org.apache.spark.streaming.aliyun.logservice

LoghubUtils

Related Doc: package logservice

Permalink

object LoghubUtils

Various utility classes for working with Aliyun LogService.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LoghubUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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. def createDirectStream(ssc: StreamingContext, project: String, logStore: String, mConsumerGroup: String, accessKeyId: String, accessKeySecret: String, endpoint: String, zkParams: Map[String, String], mode: LogHubCursorPosition): DStream[String]

    Permalink
    Annotations
    @Experimental()
  7. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, numReceivers: Int, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): JavaDStream[Array[Byte]]

    Permalink
  8. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, numReceivers: Int, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): JavaDStream[Array[Byte]]

    Permalink
  9. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): JavaDStream[Array[Byte]]

    Permalink
  10. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): JavaDStream[Array[Byte]]

    Permalink
  11. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, numReceivers: Int, storageLevel: StorageLevel): JavaDStream[Array[Byte]]

    Permalink
  12. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, numReceivers: Int, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel): JavaDStream[Array[Byte]]

    Permalink
  13. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, storageLevel: StorageLevel): JavaReceiverInputDStream[Array[Byte]]

    Permalink
  14. def createStream(jssc: JavaStreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel): JavaReceiverInputDStream[Array[Byte]]

    Permalink
  15. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, numReceivers: Int, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): DStream[Array[Byte]]

    Permalink
  16. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, numReceivers: Int, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): DStream[Array[Byte]]

    Permalink

    Create loghub DStream.

    Create loghub DStream.

    ssc

    StreamingContext.

    logServiceProject

    The name of LogService project.

    logStoreName

    The name of logStore.

    loghubConsumerGroupName

    The group name of loghub consumer. All consumer process which has the same group name will consumer specific logStore together.

    loghubEndpoint

    The endpoint of loghub.

    numReceivers

    The number of receivers.

    accessKeyId

    The Aliyun Access Key Id.

    accessKeySecret

    The Aliyun Access Key Secret.

    storageLevel

    Storage level to use for storing the received objects.

    cursorPosition

    Set user defined cursor type.

    mLoghubCursorStartTime

    Set user defined cursor position (Unix Timestamp).

    forceSpecial

    Whether to force to set consume position as the mLoghubCursorStartTime.

  17. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): ReceiverInputDStream[Array[Byte]]

    Permalink
  18. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel, cursorPosition: LogHubCursorPosition, mLoghubCursorStartTime: Int, forceSpecial: Boolean): ReceiverInputDStream[Array[Byte]]

    Permalink

    Create loghub DStream.

    Create loghub DStream.

    ssc

    StreamingContext.

    logServiceProject

    The name of LogService project.

    logStoreName

    The name of logStore.

    loghubConsumerGroupName

    The group name of loghub consumer. All consumer process which has the same group name will consumer specific logStore together.

    loghubEndpoint

    The endpoint of loghub.

    accessKeyId

    The Aliyun Access Key Id.

    accessKeySecret

    The Aliyun Access Key Secret.

    storageLevel

    Storage level to use for storing the received objects.

    cursorPosition

    Set user defined cursor type.

    mLoghubCursorStartTime

    Set user defined cursor position (Unix Timestamp).

    forceSpecial

    Whether to force to set consume position as the mLoghubCursorStartTime.

  19. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, numReceivers: Int, storageLevel: StorageLevel): DStream[Array[Byte]]

    Permalink
  20. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, numReceivers: Int, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel): DStream[Array[Byte]]

    Permalink

    Create loghub DStream.

    Create loghub DStream.

    val loghubProject = "sample-project"
    val logStream = "sample-logstore"
    val loghubGroupName = "sample-group"
    val endpoint = "cn-hangzhou-intranet.sls.aliyuncs.com"
    val accessKeyId = "kj7aY*******UYx6"
    val accessKeySecret = "AiNMAlxz*************1PxaPaL8t"
    val numReceivers = 2
    val batchInterval = Milliseconds(5 * 1000)
    
    val conf = new SparkConf().setAppName("Test Loghub")
    val ssc = new StreamingContext(conf, batchInterval)
    val loghubStream = LoghubUtils.createStream(
      ssc,
      loghubProject,
      logStream,
      loghubGroupName,
      endpoint,
      numReceivers,
      accessKeyId,
      accessKeySecret,
      StorageLevel.MEMORY_AND_DISK)
    ssc

    StreamingContext.

    logServiceProject

    The name of LogService project.

    logStoreName

    The name of logStore.

    loghubConsumerGroupName

    The group name of loghub consumer. All consumer process which has the same group name will consumer specific logStore together.

    loghubEndpoint

    The endpoint of loghub.

    numReceivers

    The number of receivers.

    accessKeyId

    The Aliyun Access Key Id.

    accessKeySecret

    The Aliyun Access Key Secret.

    storageLevel

    Storage level to use for storing the received objects.

  21. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, storageLevel: StorageLevel): ReceiverInputDStream[Array[Byte]]

    Permalink
  22. def createStream(ssc: StreamingContext, logServiceProject: String, logStoreName: String, loghubConsumerGroupName: String, loghubEndpoint: String, accessKeyId: String, accessKeySecret: String, storageLevel: StorageLevel): ReceiverInputDStream[Array[Byte]]

    Permalink

    val loghubProject = "sample-project"
    val logStream = "sample-logstore"
    val loghubGroupName = "sample-group"
    val endpoint = "cn-hangzhou-intranet.sls.aliyuncs.com"
    val accessKeyId = "kj7aY*******UYx6"
    val accessKeySecret = "AiNMAlxz*************1PxaPaL8t"
    val batchInterval = Milliseconds(5 * 1000)
    
    val conf = new SparkConf().setAppName("Test Loghub")
    val ssc = new StreamingContext(conf, batchInterval)
    val loghubStream = LoghubUtils.createStream(
      ssc,
      loghubProject,
      logStream,
      loghubGroupName,
      endpoint,
      accessKeyId,
      accessKeySecret,
      StorageLevel.MEMORY_AND_DISK)
    ssc

    StreamingContext.

    logServiceProject

    The name of LogService project.

    logStoreName

    The name of logStore.

    loghubConsumerGroupName

    The group name of loghub consumer. All consumer process which has the same group name will consumer specific logStore together.

    loghubEndpoint

    The endpoint of loghub.

    accessKeyId

    The Aliyun Access Key Id.

    accessKeySecret

    The Aliyun Access Key Secret.

    storageLevel

    Storage level to use for storing the received objects.

  23. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped