Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-17 Thread Randall Hauch
> >>>> could >> > > >>>> > define which converter it wants to use; for backward >> compatibility >> > > >>>> purposes >> > > >>>> > we use a header converter by default that serializ

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-17 Thread Randall Hauch
gt;>> > headers in the same way -- with string-like representations by > > > >>>> default. I > > > >>>> > think this is a safe assumption for the short term, and if we > need > > > >>>> more > > > >>>>

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-05 Thread Michael Pearce
he desired type, and to support all of the sensible > > >>>> conversions > > >>>> > between Connect's primitives and logical types. So, a connector or > > >>>> > transform could always call `header.valueAsObje

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-02 Thread Ewen Cheslack-Postava
t; > >>>> > transforms that are implemented to expect a certain type of header > > >>>> value, > > >>>> > such as an integer or boolean or timestamp? We could solve this > > >>>> problem > > >>>> > (for the m

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-02 Thread Gwen Shapira
>>>> > between Connect's primitives and logical types. So, a connector or > >>>> > transform could always call `header.valueAsObject()` to get the raw > >>>> > representation from the converter, but a connector or transfo

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2018-01-02 Thread Randall Hauch
> `header.valueAsTimestamp()` to return a java.util.Date value that is >>>> > described by Connect's Timestamp logical type). We can convert >>>> between most >>>> > primitive and logical types (e.g., anything to a STRING, INT32 to >>>>

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-26 Thread Randall Hauch
ARRAY to >>> FLOAT32, >>> > INT32 to STRUCT, BYTE_ARRAY to anything, etc.), so these can throw a >>> > `DataException`. >>> > >>> > I've refined this approach over the last few months, and have a PR for >>> a >>> > complete prot

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-21 Thread Randall Hauch
; the >> > KIP) some relatively obvious SMTs for copying header values into record >> > key/value fields, and extracting record key/value fields into header >> values. >> > >> > @Michael, would you mind if I edited KIP-145 to reflect this proposal? I >> >

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-14 Thread Randall Hauch
gt; Comments? Thoughts? > > > > Best regards, > > > > Randall > > > > > > On Thu, Oct 19, 2017 at 2:10 PM, Michael André Pearce < > > michael.andre.pea...@me.com> wrote: > > > >> @rhauch > >> > >> Here is the previous

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-12 Thread Michael André Pearce
nts? Thoughts? >> >> Best regards, >> >> Randall >> >> >> On Thu, Oct 19, 2017 at 2:10 PM, Michael André Pearce < >> michael.andre.pea...@me.com> wrote: >> >>> @rhauch >>> >>> Here is the previous discussion thread, just reigniting so we can d

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-12 Thread Michael André Pearce
thread, just reigniting so we can discuss >> against the original kip thread >> >> >> Cheers >> >> Mike >> >> Sent from my iPhone >> >>> On 5 May 2017, at 02:21, Michael Pearce wrote: >>> >>> Hi Ewen, >>>

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-12-12 Thread Randall Hauch
dea? > > > > Did it help? > > > > Cheers > > Mike > > > > Sent using OWA for iPhone > > ________________ > > From: Michael Pearce > > Sent: Wednesday, May 3, 2017 10:11:55 AM > > To: dev@kafka.apache.org > >

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-10-19 Thread Michael André Pearce
howing the idea? > > Did it help? > > Cheers > Mike > > Sent using OWA for iPhone > > From: Michael Pearce > Sent: Wednesday, May 3, 2017 10:11:55 AM > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP 145 - Expose Record He

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-04 Thread Michael Pearce
rror > >> makers of replicating the messaging from one cluster to another. Eg > like > >> mirror make should just be taking and transferring the headers as is. > >> > >> We don't actually use this inside our company, so not exposing

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-03 Thread Michael Pearce
icating the messaging from one cluster to another. Eg > like > >> mirror make should just be taking and transferring the headers as is. > >> > >> We don't actually use this inside our company, so not exposing this > isn't > >> a

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-02 Thread Ewen Cheslack-Postava
o mirror > >> makers of replicating the messaging from one cluster to another. Eg > like > >> mirror make should just be taking and transferring the headers as is. > >> > >> We don't actually use this inside our company, so not exposing this > isn't > >&

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-02 Thread Michael André Pearce
>> tools like replicator that do. >> >> And as good citizens think we should complete the work and expose the >> headers same as in the record to at least allow them to replicate the >> messages as is. Note Steph seems to want it. >> >> Cheers >> Mike >> >>

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-02 Thread Ewen Cheslack-Postava
; messages as is. Note Steph seems to want it. > > Cheers > Mike > > Sent using OWA for iPhone > ____ > From: Gwen Shapira > Sent: Monday, May 1, 2017 2:36:34 PM > To: dev@kafka.apache.org > Subject: Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Con

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-01 Thread Michael Pearce
to want it. Cheers Mike Sent using OWA for iPhone From: Gwen Shapira Sent: Monday, May 1, 2017 2:36:34 PM To: dev@kafka.apache.org Subject: Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect Hi, I'm excited to see the community expanding

Re: [DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-05-01 Thread Gwen Shapira
Hi, I'm excited to see the community expanding Connect in this direction! Headers + Transforms == Fun message routing. I like how clean the proposal is, but I'm concerned that it kinda deviates from how Connect handles data elsewhere. Unlike Kafka, Connect doesn't look at all data as byte-arrays,

[DISCUSS] KIP 145 - Expose Record Headers in Kafka Connect

2017-04-29 Thread Michael Pearce
Hi All, Now KIP-82 is committed I would like to discuss extending the work to expose it in Kafka Connect, its primary focus being so connectors that may do similar tasks as MirrorMakers, either Kafka->Kafka or JMS-Kafka would be able to replicate the headers. It would be ideal but not mandatory