O'Reilly logo
  • MARESMA Damien thinks this is interesting:

val eventHubsStream = EventHubsUtils.createUnionStream(streamingContext, eventHubsParameters)

From

Cover of Mastering Azure Analytics, 1st Edition

Note

Deprecated : import org.apache.spark.eventhubs.EventHubsUtils

val eventHubsStream = EventHubsUtils.createDirectStream(streamingContext, eventHubsParameters)