static byte[] toVersionByteArray(final String version) {
    FSProtos.HBaseVersionFileContent.Builder builder =
      FSProtos.HBaseVersionFileContent.newBuilder();
    return ProtobufUtil.prependPBMagic(builder.setVersion(version).build().toByteArray());
  }
Create the content to write into the ${HBASE_ROOTDIR}/hbase.version file.
@param version Version to persist
@return Serialized protobuf with <code>version</code> content and a bit of pb magic for a
        prefix.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java