Found the issue.
I've used kafka api less than 0.11.0.0.
The headers was introduced to kafka api in 0.11.0.0.