public static String getBuildVersion(){
    return MetastoreVersionInfo.getVersion() +
    " from " + MetastoreVersionInfo.getRevision() +
    " by " + MetastoreVersionInfo.getUser() +
    " source checksum " + MetastoreVersionInfo.getSrcChecksum();
  }
Returns the buildVersion which includes version,
revision, user and date.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetastoreVersionInfo.java