Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

split processing depending on parsed value

Highlighted

split processing depending on parsed value

New Contributor

Hi,

I have a fixed length file in format

aaaaa0001bbbbb

aaaaa0002ccccc

aaaaa0003ddddd

I need to split parsing of the records depending on the value 0001,0002,0003... where field structure of bbbb,cccc,dddd is different. Values of bbbb,ccccc,dddd need to be parsed to json/avro and pushed to MongoDB and Kafka.

I've tried with partition record -> RouteOnAttribute - but for attribute values I get value "1" insted of field value ( 0001, 0002, 0003... )