diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh index 507bbb02000..181d009abfb 100644 --- a/hbase-common/src/saveVersion.sh +++ b/hbase-common/src/saveVersion.sh @@ -49,14 +49,14 @@ if [ -z "${revision}" ]; then revision="Unknown" url="file://$cwd" fi -if ! [ -x "$(command -v md5sum)" ]; then - if ! [ -x "$(command -v md5)" ]; then +if ! [ -x "$(command -v openssl)" ]; then + if ! [ -x "$(command -v gpg)" ]; then srcChecksum="Unknown" else - srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs md5 | md5 | cut -d ' ' -f 1` + srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs gpg --print-md sha512 | gpg --print-md sha512 | cut -d ' ' -f 1` fi else - srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs md5sum | md5sum | cut -d ' ' -f 1` + srcChecksum=`find hbase-*/src/main/ | grep -e "\.java" -e "\.proto" | LC_ALL=C sort | xargs openssl dgst -sha512 | openssl dgst -sha512 | cut -d ' ' -f 1` fi popd diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon index 06fe2c94994..1062856d9d5 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/master/MasterStatusTmpl.jamon @@ -302,7 +302,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager(); HBase Source Checksum <% org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum() %> - HBase source MD5 checksum + HBase source SHA512 checksum Hadoop Version diff --git a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon index 94fcecf3080..2496b5d1622 100644 --- a/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon +++ b/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.jamon @@ -177,7 +177,7 @@ org.apache.hadoop.hbase.zookeeper.MasterAddressTracker; HBase Source Checksum <% org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum() %> - HBase source MD5 checksum + HBase source SHA512 checksum Hadoop Version