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