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

python - argument must be rect style object - Pygame -

php - Zend Framework / Skeleton-Application / Composer install issue -

webrtc - Which ICE candidate am I using and why? -