Not sure I understood the question correctly but you might be able to use the regex interceptor to do what you want.
-- Sharninder On Tue, Feb 16, 2016 at 1:56 PM, Gonzalo Herreros <[email protected]> wrote: > I don't think that's possible without writing/reusing custom code. > You would need an interceptor to add the header following the conditions > you describe so the multiplexer can do the routing. > > Gonzalo > > On 15 February 2016 at 21:06, chandra koripella <[email protected]> > wrote: > >> Hi, >> >> >> Is there a way implement multiplexing when there is no header information >> attached to the event (based on first column)? >> >> >> we have customer data coming in in a file. There is no header information >> attached to the data. First column is even type(highlighted in red). >> >> >> >> · Each even type is bound to different metadata but it is not >> attached to incoming record. >> >> · There are 10 different event types. >> >> · Data needs to route to 10 different hdfs sinks. >> >> I am wondering if there is way to accomplish this without writing custom >> code. I appreciate any help. >> >> >> >> 1|20160129010003|_abc|[email protected]|31-EA1HYGT|31-EA1HYGF|R|1|[email protected] >> <1%7c20160129010003%7c_bwqv-jb9kk8nt4%[email protected]%7c31-ea1hygt%7c31-ea1hygf%7cr%7c1%[email protected]> >> >> 7|20160129010003|_aec|[email protected]|31-EA10ARI|31-EA10ARE|R|2|[email protected] >> <7%7c20160129010003%7c_bwqv-jb9kk8nt4%[email protected]%7c31-ea10ari%7c31-ea10are%7cr%7c2%[email protected]> >> |test|test|test >> >> 1 >> 0|20160129010003|_asaasd|[email protected]|31-EA10ARI|31-EA10ARE|R|2|[email protected]|www.yahoo.com >> <10%7c20160129010003%7c_bwqv-jb9kk8nt4%[email protected]%7c31-ea10ari%7c31-ea10are%7cr%7c2%[email protected]%7Cwww.yahoo.com> >> |test >> >> 1 >> |20160129010003|_rtert|[email protected]|31-EA1HYGT|31-EA1HYGF|R|1|[email protected] >> <1%7c20160129010003%7c_bwqv-jb9kk8nt4%[email protected]%7c31-ea1hygt%7c31-ea1hygf%7cr%7c1%[email protected]> >> >> 4 >> |20160129010003|_w3423|[email protected]|31-EA1HYGT|31-EA1HYGF|R|1|[email protected]|xx|xx| >> <4%7c20160129010003%7c_bwqv-jb9kk8nt4%[email protected]%7c31-ea1hygt%7c31-ea1hygf%7cr%7c1%[email protected]%7Cxx%7Cxx%7C> >> >> >> >> Thanks, >> >> Chandra >> >> >> > -- -- Sharninder
