-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't consume from IOTHub's "Event Hub-compatible endpoint" #312
Comments
Hey @eduardBM! For Spark 2.1 you need to use version |
Hi @sabeegrewal. I updated my local copy with the tip of "spark-2.2" branch, ended up with artifact "core/target/azure-eventhubs-spark_2.11-2.2.0-PREVIEW.jar", tried running the spark streaming job with that one but still getting the same error. |
Hi, Looking closely at the traceback, the actual cause is https://github.com/Azure/azure-event-hubs-java/blob/dev/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/RequestResponseChannel.java#L104 which means the "IoT Hub Event hub compatible endpoint" is producing incompatible messages. (as the same library works with an actual Event Hub endpoint) Package used: "--packages com.microsoft.azure:azure-eventhubs:1.0.1" |
Hi, @sabeegrewal , any news regarding this? Ed |
Hey @eduardBM - I haven't tried to repro this but we have a number of people running pipelines from IoTHub, so I'm curious to know what's going on. I'm going to try to repro the issue tonight/tomorrow morning. If you have anything else that'd help me repro, please let me know! |
Hi, Some more details:
Here is the full traceback inside spark:
This is what looks like the cause of the error:
Thanks, Ed |
Oh wow, so to be clear: you guys had this working with an Event Hub? And when you switched to the Event Hub Compatible endpoint it stopped working? Also, can you share you Event Hub Compatible endpoint here? Just change all the private/personal info to |
Hi, The working eventHub: "Endpoint=sb://test-eduard.servicebus.windows.net/;SharedAccessKeyName=IncomingDataListen;SharedAccessKey=XXX;EntityPath=incoming-data", The IOTHub Compatible eventHub: "Endpoint=sb://iothub-ns-iohenedspe-443357-03c23e169d.servicebus.windows.net/;SharedAccessKeyName=iothubowner;SharedAccessKey=XXX" Ed |
Ah, there's the issue. You're missing the
It'd be nice if all the pieces were in one spot...no clue why the IoT Hub team has it separate like that. They may have a good reason, but I'll track down whoever works on the IoT Hub portal and see if they're willing to change it 👍 Try that out and let me know how it goes! |
@sabeegrewal (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-read-builtin)
Thanks for your help, and please let me know when you have to go over the other issue (with Pyspark). Thanks, Ed |
Bug Report:
Trying to consume/stream events from an Azure IOTHub's "Event Hub-compatible endpoint" inside spark streaming
Expected behavior
Stream/consume messages from EH endpoint
Spark version
2.1.1.2.6.2.25-1
spark-eventhubs artifactId and version
azure-eventhubs-spark_2.11-2.3.0.jar
The text was updated successfully, but these errors were encountered: