title: Java Kafka consumer and avro deserialzier
body: <p>I'm developing a simple java with spark streaming.</p>
  
  <p>I configured a kafka jdbc connector (postgres to topic) and I wanna read it with a spark streaming consumer.</p>
  
  <p>I'm able to read to topic correctly with:</p>
  
  <pre><code>./kafka-avro-console-consumer --bootstrap-server localhost:9092 --property schema.registry.url=http://localhost:8081 --property print.key=true --from-beginning --topic postgres-ip_audit
  </code></pre>
  
  <p>getting this results:</p>
  
  <blockquote>
    <p>null
    {"id":1557,"ip":{"string":"90.228.176.138"},"create_ts":{"long":1554819937582}}</p>
  </blockquote>
  
  <p>when I use my java application with this config:</p>
  
  <pre><code>Map&lt;String, Object&gt; kafkaParams = new HashMap&lt;&gt;();
  kafkaParams.put("bootstrap.servers", "localhost:9092");
  kafkaParams.put("key.deserializer", StringDeserializer.class);
  kafkaParams.put("value.deserializer", StringDeserializer.class);
  kafkaParams.put("group.id", "groupStreamId");
  kafkaParams.put("auto.offset.reset", "latest");
  kafkaParams.put("enable.auto.commit", false);
  </code></pre>
  
  <p>I get results like that:</p>
  
  <blockquote>
    <p>�179.20.119.53�����Z</p>
  </blockquote>
  
  <p>Can someone point me how to fix my issue?</p>
  
  <p>I try also to use a ByteArrayDeserializer and convert the bytes[] in to a string but I get always bad character results.</p>