Attempted to update an empty pipeline.
This error usually means that no tables were discovered in your specified Notebook libraries.
Please verify that your Notebook libraries include table definitions.
DLT notebook code
%python
import dlt
@dlt.table
def kafka_raw():
TOPIC = "<event_hub>"
BOOTSTRAP_SERVERS = "<event_hub>.servicebus.windows.net:9093"
EH_SASL = 'kafkashaded.org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="Endpoint=sb://<event_hub>.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<event_hub shared_access_policy primary_key>;";'
return (
spark.readStream.format("kafka")
.option("subscribe", TOPIC)
.option("kafka.bootstrap.servers", BOOTSTRAP_SERVERS)
.option("kafka.sasl.mechanism", "PLAIN")
.option("kafka.security.protocol", "SASL_SSL")
.option("kafka.sasl.jaas.config", EH_SASL)
.option("kafka.request.timeout.ms", "60000")
.option("kafka.session.timeout.ms", "60000")
.option("failOnDataLoss", "false")
.option("startingOffsets", "earliest")
.load()
)