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
Post a Comment