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
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
>
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?
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.
>
>
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