title: Kafka console consumer to read avro messages in HDP 3
body: <p>Trying to consume kafka Avro messages from console consumer and not exactly sure how to deserialize the messages.</p>
  
  <pre><code>sh /usr/hdp/current/kafka-broker/bin/kafka-console-consumer.sh --bootstrap-server localhost:6667 --topic test --consumer.config /home/user/kafka.consumer.properties --from-beginning --value-deserializer ByteArrayDeserializer
  </code></pre>
  
  <p>The Avro Schema in Schema Registry for the test topic is:</p>
  
  <pre><code>{
   "type": "record",
   "namespace": "test",
   "name": "TestRecord",
   "fields": [
    {
     "name": "Name",
     "type": "string",
     "default": "null"
    },
    {
     "name": "Age",
     "type": "int",
     "default": -1
    }
   ]
  }
  </code></pre>
  
  <p>Using HDP 3.1 version and Kafka-clients-2.0.0.3.1.0.0-78</p>
  
  <p>Could someone help me what would be the Deserializer required to read Avro messages from console.</p>