static String parseVersionFrom(final byte[] bytes) throws DeserializationException {
    ProtobufUtil.expectPBMagicPrefix(bytes);
    int pblen = ProtobufUtil.lengthOfPBMagic();
    FSProtos.HBaseVersionFileContent.Builder builder =
      FSProtos.HBaseVersionFileContent.newBuilder();
    try {
      ProtobufUtil.mergeFrom(builder, bytes, pblen, bytes.length - pblen);
      return builder.getVersion();
    } catch (IOException e) {
      // Convert
      throw new DeserializationException(e);
    }
  }
Parse the content of the ${HBASE_ROOTDIR}/hbase.version file.
@param bytes The byte content of the hbase.version file
@return The version found in the file as a String
@throws DeserializationException if the version data cannot be translated into a version
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java