apache spark - How to get size (metadata) of a message without fetch request in Kafka through SimpleConsumer? -


i using simpleconsumer , trying pull message size wise (bytes) using spark.

i able earliest , latest offset using metadata request, dont know how number of bytes in kafka (0.8.0).

i dont want use fetch request because want check sufficient data run spark job (not streaming) perform action.

from metadata response cant size, size need download message meaningless.


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - rosrun via ssh doesnt start a node properly -

How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer' -