@Override public byte[] getBytes(Text writable) {
      //@TODO  There is no reason to decode then encode the string to bytes really
      //@FIXME this issue with CTRL-CHAR ^0 added by Text at the end of string and Json serd does not like that.
      try {
        return Text.decode(writable.getBytes(), 0, writable.getLength()).getBytes(Charset.forName("UTF-8"));
      } catch (CharacterCodingException e) {
        throw new RuntimeException(e);
      }
    }
Avro converter which skips the first @skipBytes of each message.

This may be needed for various serializers, such as the Confluent Avro serializer, which uses the first five
bytes to indicate a magic byte, as well as a four byte schema ID.
kafka-handler/src/java/org/apache/hadoop/hive/kafka/KafkaSerDe.java