I have used fs.azure.data.blocks.buffer: bytebuffer in my flink configuration and this fixed the above issue.