Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a Release Tag
Code Block
export RELEASE_VERSION=x.y.z #e.g. 0.8.4
git tag -a release-x.y.z$RELEASE_VERSION-rc0 -m '"Tez x.y.z$RELEASE_VERSION RC0'"
# push the new tag 
git push origin release-x.y.z$RELEASE_VERSION-rc0
Deploy the jars to Staging

...

Create a Release tarball for the Source
Code Block
mvn clean
git cleanexport RELEASE_VERSION=x.y.z #e.g. 0.8.4
mvn clean
git clean -f -x -d
cd ..
cp -R tez-git-x.y.z$RELEASE_VERSION apache-tez-{x.y.z}$RELEASE_VERSION-src (where tez-git-x.y.z$RELEASE_VERSION is the tez code directory)
COPYFILE_DISABLE=1 tar --exclude=.git -zcvf apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz apache-tez-{x.y.z}$RELEASE_VERSION-src
Sign the Release
Code Block
gpg2  --armor --output apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz.asc --detach-sig apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz
Generate checksums
Code Block
shasum -a 512 apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz > apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz.sha512

or

Code Block
openssl md5  apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz > apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz.md5
openssl dgst -sha512 apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz > apache-tez-{x.y.z}$RELEASE_VERSION-src.tar.gz.sha512
Create Binary Tarball as a helper for Users

...

Code Block
#Define the following environment variables
export TEZ_SRC_DIR (e=/home/user/tez #e.g. tez-src or the absolute path)
export RELEASE_VERSION (e=x.y.z #e.g. 0.8.4)
 
cd ${TEZ_SRC_DIR};
mvn clean install -DskipTests
mvn site
cd ..


mkdir apache-tez-${RELEASE_VERSION}-bin
tar -C apache-tez-${RELEASE_VERSION}-bin -zxvf ${TEZ_SRC_DIR}/tez-dist/target/tez-${RELEASE_VERSION}-minimal.tar.gz
mkdir tmp-tez-full
tar -C tmp-tez-full -zxvf ${TEZ_SRC_DIR}/tez-dist/target/tez-${RELEASE_VERSION}.tar.gz
cp tmp-tez-full/LICENSE* apache-tez-${RELEASE_VERSION}-bin/
cp tmp-tez-full/NOTICE* apache-tez-${RELEASE_VERSION}-bin/
rm -rf tmp-tez-full


mkdir apache-tez-${RELEASE_VERSION}-bin/conf
# copy over tez templates into conf dir.
cp ${TEZ_SRC_DIR}/tez-api/target/site/apidocs/configs/tez-default-template.xml apache-tez-${RELEASE_VERSION}-bin/conf/
cp ${TEZ_SRC_DIR}/tez-runtime-library/target/site/apidocs/configs/tez-runtime-default-template.xml apache-tez-${RELEASE_VERSION}-bin/conf/


# TODO: If TEZ-3322 is not fixed, modify the config files under apache-tez-${RELEASE_VERSION}-bin/conf/ and add the Apache header


mkdir apache-tez-${RELEASE_VERSION}-bin/share
cp ${TEZ_SRC_DIR}/tez-dist/target/tez-${RELEASE_VERSION}.tar.gz apache-tez-${RELEASE_VERSION}-bin/share/tez.tar.gz
COPYFILE_DISABLE=1 tar --exclude=.git -zcvf apache-tez-${RELEASE_VERSION}-bin.tar.gz apache-tez-${RELEASE_VERSION}-bin
# Sign release and create checksums using commands similar to those called out earlier for the source tarball
gpg2  --armor --output apache-tez-${RELEASE_VERSION}-bin.tar.gz.asc --detach-sig apache-tez-${RELEASE_VERSION}-bin.tar.gz
openssl md5 apache-tez-${RELEASE_VERSION}-bin.tar.gz > apache-tez-${RELEASE_VERSION}-bin.tar.gz.md5
openssl dgst -sha512 apache-tez-${RELEASE_VERSION}-bin.tar.gz > apache-tez-${RELEASE_VERSION}-bin.tar.gz.sha512

#Remove unnecessary text from checksum files 
sed -i "" s/"^.*= "// apache-tez-${RELEASE_VERSION}-bin.tar.gz.md5
sed -i "" s/"^.*= "// apache-tez-${RELEASE_VERSION}-bin.tar.gz.sha512
#Verify integrity of checksum files
 

...