Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi there,
I am trying to stream event data from an Azure Event Hub using Spark Structured Streaming from within a Fabric Notebook to a lakehouse. The event data is protobuf and base64 encoded. I wanted to use the "from_protobuf()" method (Protobuf Data Source Guide - Spark 3.5.4 Documentation) to decode the payload.
However, I am getting the following error message:
"Spark Protobuf libraries not found in class path. Try one of the following. 1. Include the Protobuf library and its dependencies with in the spark-submit command as $ bin/spark-submit --packages org.apache.spark:spark-protobuf:3.4.3.5.3.20241016.1 ... 2. Download the JAR of the artifact from Maven Central http://search.maven.org/, Group Id = org.apache.spark, Artifact Id = spark-protobuf, Version = 3.4.3.5.3.20241016.1. Then, include the jar in the spark-submit command as $ bin/spark-submit --jars <spark-protobuf.jar> ..."
Now my question is how do I do this in a Fabric notebook environment? Is there a way to include the mentioned library?
Also: I have two Python modules that contain the classes generated from the .proto schemas which are required to decode the payload. Where do I have to put these so that I can hand them to the from_protobuf() method?
Looking forward to any ideas on this! Thanks a lot and best, flo.
Solved! Go to Solution.
@friend1, Thanks reaching out to MS Fabric community support.
please refer to below wiki on how to manage apache spark libraries and let me know if this helps?
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn
Thanks,
Prashanth Are
MS Fabric community support
Did we answer your question? Mark post as a solution, this will help others!
If our response(s) assisted you in any way, don't forget to drop me a "Kudos"
@friend1, As we havenโt heard back from you, we wanted to check in to see if the resolution provided helps?
If youโre still facing any issues or have additional questions, please donโt hesitate to let us know.
Weโre here to help and would be happy to assist further if needed. Looking forward to your feedback!
Thanks,
Prashanth Are
MS Fabric community support.
Did we answer your question? Mark post as a solution, this will help others!
If our response(s) assisted you in any way, don't forget to drop me a "Kudos"
@friend1, As we havenโt heard back from you, we wanted to check in to see if the resolution provided helps?
If youโre still facing any issues or have additional questions, please donโt hesitate to let us know.
Weโre here to help and would be happy to assist further if needed. Looking forward to your feedback!
Thanks,
Prashanth Are
MS Fabric community support.
Did we answer your question? Mark post as a solution, this will help others!
If our response(s) assisted you in any way, don't forget to drop me a "Kudos"
@friend1, As we havenโt heard back from you, we wanted to check in to see if the resolution provided helps?
If youโre still facing any issues or have additional questions, please donโt hesitate to let us know.
Weโre here to help and would be happy to assist further if needed. Looking forward to your feedback!
Thanks,
Prashanth Are
MS Fabric community support.
Did we answer your question? Mark post as a solution, this will help others!
If our response(s) assisted you in any way, don't forget to drop me a "Kudos"
@friend1, Thanks reaching out to MS Fabric community support.
please refer to below wiki on how to manage apache spark libraries and let me know if this helps?
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn
Thanks,
Prashanth Are
MS Fabric community support
Did we answer your question? Mark post as a solution, this will help others!
If our response(s) assisted you in any way, don't forget to drop me a "Kudos"
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |