Issue with Azure Stream Analytics Job

Admin (KK) 136 Reputation points
2023-01-16T19:28:55.2333333+00:00

Hello,

I have json messages in event hub which are compressed using gzip. I am trying to read those messages by enabling compression field to gzip, however i am getting the following error.

Exception of type 'Microsoft.Streaming.Adapters.Exceptions.EventHubAdapterException' was thrown.

Is there a way i can read these compressed message in stream analytics.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
630 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
352 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,086 Reputation points MVP
    2023-01-17T10:16:28.62+00:00

    Hello Admin (KK),

    yes, Azure Stream Analytics supports automatic unzip/deflate of incoming messages.

    See also this blog post.

    Deflate works like gzip but ignore file system paths so it's even more compressed.

    I'm not sure why you get this error, have you set the message ContentEncoding property?

    Can you try it with deflate?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.