HBASE-22469 replace md5 checksum in saveVersion script with sha512

Signed-off-by: Josh Elser <elserj@apache.org>
This commit is contained in:
Artem Ervits 2019-05-28 14:52:40 -04:00 committed by Josh Elser
parent 6ddf893a34
commit 3a3857690a
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -302,7 +302,7 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
<tr>
<td>HBase Source Checksum</td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum() %></td>
<td>HBase source MD5 checksum</td>
<td>HBase source SHA512 checksum</td>
</tr>
<tr>
<td>Hadoop Version</td>

View File

@ -177,7 +177,7 @@ org.apache.hadoop.hbase.zookeeper.MasterAddressTracker;
<tr>
<td>HBase Source Checksum</td>
<td><% org.apache.hadoop.hbase.util.VersionInfo.getSrcChecksum() %></td>
<td>HBase source MD5 checksum</td>
<td>HBase source SHA512 checksum</td>
</tr>
<tr>
<td>Hadoop Version</td>