public static String byteToHexString(byte[] bytes, int start, int end) {
    return org.apache.hadoop.util.StringUtils.byteToHexString(bytes, start, end);
  }
Given an array of bytes it will convert the bytes to a hex string
representation of the bytes.
@param bytes Input bytes
@param start start index, inclusively
@param end end index, exclusively
@return hex string representation of the byte array
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/StringUtils.java