Re: Kafka appender expecting String but getting Byte?

2016-08-08 Thread Mikael Ståldal
Log4j always passes the LogEvent as a byte[] to Kafka, so using the Kafka StringSerializer will not work. You should not specify *key.serializer* or *value.serializer* in the Kafka appender config, they are automatically set to ByteArraySerializer by Log4j. I will improve the documentation on

Re: Kafka appender expecting String but getting Byte?

2016-08-05 Thread Gary Gregory
Also, also, you can try building our Git master branch which uses Kafka 0.10.0.0 instead of 0.9.0.1 Gary On Fri, Aug 5, 2016 at 6:04 PM, Gary Gregory wrote: > Also, try omitting these properties: > > org.apache.kafka.common. > serialization.StringSerializer >

Re: Kafka appender expecting String but getting Byte?

2016-08-05 Thread Gary Gregory
Also, try omitting these properties: org.apache.kafka.common. serialization.StringSerializer org.apache.kafka.common. serialization.StringSerializer Gary On Fri, Aug 5, 2016 at 6:02 PM, Gary Gregory wrote: > Do you get a stack trace with the exception?

Re: Kafka appender expecting String but getting Byte?

2016-08-05 Thread Gary Gregory
Do you get a stack trace with the exception? Gary On Fri, Aug 5, 2016 at 11:03 AM, Meadowlark Bradsher < mbrads...@guidewire.com> wrote: > Hello, > > I am attempting to use a kafka log appender. The topic is written to Kafka > but the appender breaks during the messaging. > >

Kafka appender expecting String but getting Byte?

2016-08-05 Thread Meadowlark Bradsher
Hello, I am attempting to use a kafka log appender. The topic is written to Kafka but the appender breaks during the messaging. org.apache.kafka.common.errors.SerializationException: Can't convert value of class [B to class org.apache.kafka.common.serialization.StringSerializer specified in