You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »

This page is prepared for Hive committers. You need committer rights to create a new Hive release.

Preparation

  1. Bulk update Jira to unassign from this release all issues that are open non-blockers and send follow-up notification to the developer list that this was done.
  2. run 'ant rat' to and examine the generated report for any files, specially .java files should be having apache license headers. Add the license header to any file that is missing it (open a jira and submit a patch).
  3. Update copyright date in NOTICE . If the components mentioned in them have updated version, you would need to update the copyright dates for those. (Thejas comment: It sounds like entries are needed in NOTICE only if the license requires such attribution . See - http://www.apache.org/legal/src-headers.html#notice)

Branching

Skip this section if this is NOT the first release in a series (i.e. release X.Y.0).

  1. Notify developers on the #hive IRC channel that you are about to branch a release.
  1. Create a branch for the release series:
    svn copy https://svn.apache.org/repos/asf/hive/trunk \
    https://svn.apache.org/repos/asf/hive/branches/branch-X.Y -m "Branching for X.Y releases"
    
  2. Increment the value of the version property the build.properties file, hcatalog/build.properties and hcat pom.xml files (find hcatalog/ -name pom.xml), on trunk For example, if the current value is 0.7.0-SNAPSHOT, the new value should be 0.8.0-SNAPSHOT. Please note that the SNAPSHOT suffix is required in order to indicate that this is an unreleased development branch.
  3. Verify that the build is working with changes
  4. Commit these changes to trunk.
    svn commit -m "Preparing for X.Y+1.0 development"
    

Updating Release Branch

These operations take place in the release branch.

  1. Check out the release branch with:
    svn co https://svn.apache.org/repos/asf/hive/branches/branch-X.Y
    
  2. Update the version property value in the build.properties file, hcatalog/build.properties and hcat pom.xml files (find hcatalog/ -name pom.xml). You should remove the SNAPSHOT suffix and set version equal to hive-X.Y.Z where Z is the point release number in this release series (0 for the first one, in which case this step is a no-op since you already did this above when creating the branch).
  3. Verify that the build is working with changes
  4. Commit these changes.
    svn commit -m "Preparing for release X.Y.Z"
    
  5. If not already done, merge desired patches from trunk into the branch and commit these changes. We don't currently use svn merge for this, but if we did, the script would be
    cd branch-X.Y
    svn merge -rR1:R2 ../trunk .
    svn commit -m "Merge -r R1:R2 from trunk to X.Y branch. Fixes: HIVE-A, HIVE-B."
    
  6. You probably also want to commit a patch (on both trunk and branch) which updates README.txt to bring it up to date (at a minimum, search+replacing references to the version number). Also check NOTICE to see if anything needs to be updated for recent library dependency changes or additions.
    1. Select all of the JIRA's for the current release that aren't FIXED and do bulk update to clear the 'Fixed Version' field.
    2. Likewise, use JIRA's Release Notes link to generate content for the RELEASE_NOTES.txt file. Be sure to select 'Text' format. (It's OK to do this with a direct commit rather than a patch.)
  7. Tag the release candidate (R is the release candidate number, and also starts from 0):
    svn copy https://svn.apache.org/repos/asf/hive/branches/branch-X.Y \
    https://svn.apache.org/repos/asf/hive/tags/release-X.Y.Z-rcR -m "Hive X.Y.Z-rcR release."
    

Building

  1. Build the release (binary and source versions) after running unit tests. Note that this will generate MD5 checksum files automatically.
    % ant -Dversion=X.Y.Z clean test tar binary
    
  2. Verify that the MD5 checksums are valid:
    % md5sum -c hive-X.Y.Z.tar.gz.md5
    hive-X.Y.Z.tar.gz: OK
    
    % md5sum -c hive-X.Y.Z-bin.tar.gz.md5
    hive-X.Y.Z-bin.tar.gz: OK
    
  3. Check that release file looks ok - e.g. install it and run examples from tutorial.
  4. Setup your PGP keys for signing the release, if you don't have it
    1. See http://www.apache.org/dev/release-signing.html
  5. Sign the release (see Step-By-Step Guide to Mirroring Releases for more information).
    % gpg --armor --output hive-X.Y.Z.tar.gz.asc --detach-sig hive-X.Y.Z.tar.gz
    % gpg --armor --output hive-X.Y.Z-bin.tar.gz.asc --detach-sig hive-X.Y.Z-bin.tar.gz
    
  6. Copy release files to a public place.
    % ssh people.apache.org mkdir public_html/hive-X.Y.Z-candidate-0
    % scp -p hive-X.Y.Z*.tar.gz* people.apache.org:public_html/hive-X.Y.Z-candidate-0
    
  7. Publish Maven artifacts to the Apache staging repository:
    % ant -Dversion=X.Y.Z -Dmvn.publish.repo=staging maven-build
    % ant -Dversion=X.Y.Z -Dmvn.publish.repo=staging maven-publish
    
  8. Login to the Apache Nexus server and "close" the staged repository. This makes the artifacts available at a temporary URL.

Voting

  1. Call a release vote on dev at hive.apache.org.
    From: you@apache.org
    To: dev@hive.apache.org
    Subject: [VOTE] Apache Hive X.Y.Z Release Candidate N
    
    Apache Hive X.Y.Z Release Candidate N is available here:
    
    http://people.apache.org/~you/hive-X.Y.Z-candidate-N
    
    Maven artifacts are available here:
    
    https://repository.apache.org/content/repositories/orgapachehive-121/
    
    Source tag for RCN is at:
    http://svn.apache.org/viewvc/hive/tags/release-X.Y.Z-RCN/
    
    Voting will conclude in 72 hours.
    
    Hive PMC Members: Please test and vote.
    
    Thanks.
    

Verifying the release candidate

  1. Verifying the PGP signature
    #get the hive committers keys file
    wget http://www.apache.org/dist/hive/KEYS 
    or 
    wget https://people.apache.org/keys/group/hive.asc
    
    gpg --import <keys file>
    gpg --verify hive-X.Y.Z-bin.tar.gz.asc  hive-X.Y.Z-bin.tar.gz
    gpg --verify hive-X.Y.Z.tar.gz.asc  hive-X.Y.Z.tar.gz
    
    
  2. Verifying the md4 checksum
    See the step under building

Publishing

Once three PMC members have voted for a release, it may be published.

  1. Tag the release:
    svn move https://svn.apache.org/repos/asf/hive/tags/release-X.Y.Z-rcR \
    https://svn.apache.org/repos/asf/hive/tags/release-X.Y.Z -m "HiveX.Y.Z release."
    
  2. Copy release files to the distribution directory and make them writable by the hive group.
    ssh people.apache.org
    cp -pR public_html/hive-X.Y.Z-candidate-0/ /www/www.apache.org/dist/hive/hive-X.Y.Z
    cd /www/www.apache.org/dist/hive
    chgrp -R hive hive-X.Y.Z
    chmod -R g+w hive-X.Y.Z
    
  3. The release directory usually contains just two releases, the most recent from two branches, with a link named 'stable' to the most recent recommended version.
    ssh people.apache.org
    cd /www/www.apache.org/dist/hive
    rm -rf hive-A.B.C; rm stable
    ln -s hive-A.B.D stable
    
  4. Wait 24 hours for release to propagate to mirrors.
  5. Prepare to edit the website.
    svn co https://svn.apache.org/repos/asf/hive/site
    
  6. Copy the new release docs to publish/docs/rX.Y.Z:
    tar xvf hive-X.Y.Z.tar.gz '*/docs'
    mv hive-X.Y.Z/docs publish/docs/rX.Y.Z
    svn add publish/docs/rX.Y.Z
    
  7. If this is a bugfix release, delete the documentation for the obsoleted release.
    svn rm publish/docs/rX.Y.Z-1
    
  8. Update the documentation links in author/src/documentation/content/xdocs/site.xml.
  9. Update the release news in author/src/documentation/content/xdocs/releases.xml.
  10. Update publish/.htaccess with the current release and any new redirects for obsoleted releases.
  11. Regenerate the site, review it, then commit it. The live site is automatically deployed from subversion after a few minutes.
    ant -Dforrest.home=/usr/local/forrest -Djava5.home=/usr/local/jdk1.5
    firefox publish/index.html
    svn commit -m "Updated site for release X.Y.Z."
    
  12. Update JIRA
    1. Ensure that only issues in the "Fixed" state have a "Fix Version" set to release X.Y.Z.
    2. Release the version. Visit the "Administer Project" page, then the "Manage versions" page. You need to have the "Admin" role in Hive's Jira for this step and the next.
    3. Close issues resolved in the release. Disable mail notifications for this bulk change.
  13. Send a release announcement to Hive user and dev lists as well as the Apache announce list. This email should be sent from your Apache email address:
    From: you@apache.org
    To: user@hive.apache.org, dev@hive.apache.org, announce@apache.org
    Subject: [ANNOUNCE] Apache Hive X.Y.Z Released
    
    The Apache Hive team is proud to announce the the release of Apache
    Hive version X.Y.Z.
    
    The Apache Hive (TM) data warehouse software facilitates querying and
    managing large datasets residing in distributed storage. Built on top
    of Apache Hadoop (TM), it provides:
    
    * Tools to enable easy data extract/transform/load (ETL)
    
    * A mechanism to impose structure on a variety of data formats
    
    * Access to files stored either directly in Apache HDFS (TM) or in other
      data storage systems such as Apache HBase (TM)
    
    * Query execution via MapReduce
    
    For Hive release details and downloads, please visit:
    http://hive.apache.org/releases.html
    
    Hive X.Y.Z Release Notes are available here:
    https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310843&version=12316178
    
    We would like to thank the many contributors who made this release
    possible.
    
    Regards,
    
    The Apache Hive Team
    

See Also

  • No labels