hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "HowToReleasePostMavenization" by Arun C Murthy
Date Mon, 06 Feb 2012 04:06:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "HowToReleasePostMavenization" page has been changed by Arun C Murthy:
http://wiki.apache.org/hadoop/HowToReleasePostMavenization?action=diff&rev1=21&rev2=22

  $ mvn clean
  
  # set version
+ $ export version=0.23.1
- $ mvn versions:set -DnewVersion=$version
+ $ mvn versions:set -DnewVersion=${version}
  
- # make the distribution (do not use 'clean' or -Dtar)
+ # make the distribution (do not use 'clean' or -Dtar, for now do not use install either
since it breaks -Psrc)
  $ mvn package site deploy -Psrc -Pnative -Pdist gpg:sign -Dmaven.test.skip.exec=true -Dcontainer-executor.conf.dir=/etc/hadoop
-Dgpg.passphrase=<passphrase>
  
  # remove ivy cache and build MR1 jars, copy them to the distribution 
@@ -125, +126 @@

  $ cp hadoop-mapreduce-project/CHANGES.txt target/staging/hadoop-project/hadoop-project-dist/hadoop-mapreduce
  
  # copy site + javdocs
- $ cp -R target/staging/hadoop-project/* hadoop-dist/target/hadoop-0.23.0/share/doc/hadoop/
+ $ cp -R target/staging/hadoop-project/* hadoop-dist/target/hadoop-${version}/share/doc/hadoop/
  
  # finally, create src/binary tarballs
  $ cd hadoop-dist/target
  
  # src tarball after copying NOTICE.txt README.txt LICENSE.txt
- $ tar -xzf hadoop-dist-0.23.0-src.tar.gz
+ $ tar -xzf hadoop-${version}-src.tar.gz
- $ mv hadoop-dist-0.23.0-src hadoop-0.23.0-src
- $ cp ../../hadoop-common-project/hadoop-common/NOTICE.txt hadoop-0.23.0-src
+ $ cp ../../hadoop-common-project/hadoop-common/NOTICE.txt hadoop-${version}-src
- $ cp ../../hadoop-common-project/hadoop-common/README.txt hadoop-0.23.0-src
+ $ cp ../../hadoop-common-project/hadoop-common/README.txt hadoop-${version}-src
- $ cp ../../hadoop-common-project/hadoop-common/LICENSE.txt hadoop-0.23.0-src
+ $ cp ../../hadoop-common-project/hadoop-common/LICENSE.txt hadoop-${version}-src
- $ tar -czf hadoop-0.23.0-src.tar.gz hadoop-0.23.0-src
+ $ tar -czf hadoop-${version}-src.tar.gz hadoop-0.23.0-src
  
  # binary tarball after copying NOTICE.txt README.txt LICENSE.txt
- $ cp ../../hadoop-common-project/hadoop-common/NOTICE.txt hadoop-0.23.0
+ $ cp ../../hadoop-common-project/hadoop-common/NOTICE.txt hadoop-${version}
- $ cp ../../hadoop-common-project/hadoop-common/README.txt hadoop-0.23.0
+ $ cp ../../hadoop-common-project/hadoop-common/README.txt hadoop-${version}
- $ cp ../../hadoop-common-project/hadoop-common/LICENSE.txt hadoop-0.23.0
+ $ cp ../../hadoop-common-project/hadoop-common/LICENSE.txt hadoop-${version}
- $ tar -czf hadoop-0.23.0.tar.gz hadoop-0.23.0
+ $ tar -czf hadoop-${version}.tar.gz hadoop-${version}
  }}}
  	1. Check that release file looks ok - e.g. install it and run examples from tutorial.
          1. Generate the checksums of the release file. {{{
- gpg --print-mds hadoop-X.Y.Z.tar.gz > hadoop-X.Y.Z.tar.gz.mds
+ gpg --print-mds hadoop-${version}.tar.gz > hadoop-${version}.tar.gz.mds
  }}}
  	1. Sign the release {{{
- gpg --armor --output hadoop-X.Y.Z.tar.gz.asc --detach-sig hadoop-X.Y.Z.tar.gz
+ gpg --armor --output hadoop-${version}.tar.gz.asc --detach-sig hadoop-${version}.tar.gz
  }}}
  	1. Copy release files to a public place. {{{
  ssh people.apache.org mkdir public_html/hadoop-X.Y.Z-candidate-0
- scp -p hadoop-X.Y.Z.tar.gz* people.apache.org:public_html/hadoop-X.Y.Z-candidate-0
+ scp -p hadoop-${version}.tar.gz* people.apache.org:public_html/hadoop-${version}-candidate-0
- }}}
- 	1. Stage the release candidate to the maven repository: {{{
- ant -Dversion=X.Y.Z -Drepo=staging mvn-deploy
  }}}
  	1. Log into [[https://repository.apache.org|Nexus]], select {{{Staging}}} from the left
navigation pane, right-click on the pushed repository, and {{{close}}} the release.
          1. Call a release vote on common-dev at hadoop.apache.org.
@@ -170, +167 @@

  }}}
  	1. Copy release files to the distribution directory and make them writable by the hadoop
group. {{{
  ssh people.apache.org
- cp -pr public_html/hadoop-X.Y.Z-candidate-0 /www/www.apache.org/dist/hadoop/core/hadoop-X.Y.Z
+ cp -pr public_html/hadoop-${version}-candidate-0 /www/www.apache.org/dist/hadoop/core/hadoop-${version}
  cd /www/www.apache.org/dist/hadoop/core
- chgrp -R hadoop hadoop-X.Y.Z
+ chgrp -R hadoop hadoop-${version}
- chmod -R g+w hadoop-X.Y.Z
+ chmod -R g+w hadoop-${version}
  }}}
  	1. 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/hadoop/core
- rm -rf hadoop-A.B.C; rm stable
+ rm -rf hadoop-${version}; rm stable
- ln -s hadoop-A.B.D stable
+ ln -s hadoop-${version} stable
  }}}
  	1. In [[https://repository.apache.org|Nexus]], effect the release of artifacts by right-clicking
the staged repository and select {{{Release}}}
  	1. Wait 24 hours for release to propagate to mirrors.
@@ -200, +197 @@

  }}}
  	1. Copy the new release docs to {{{people.apache.org:/www/hadoop.apache.org/common/docs/rX.Y.Z}}}
and update the {{{docs/current}}} link, by doing the following in your home directory on people.apache.org:
{{{
  ssh people.apache.org
- tar xvf /www/www.apache.org/dist/hadoop/core/hadoop-X.Y.Z/hadoop-X.Y.Z.tar.gz 
+ tar xvf /www/www.apache.org/dist/hadoop/core/hadoop-${version}/hadoop-${version}.tar.gz

- chmod -R ug=rwX,o=rX hadoop-X.Y.Z
+ chmod -R ug=rwX,o=rX hadoop-${version}
- chgrp -R hadoop hadoop-X.Y.Z
+ chgrp -R hadoop hadoop-${version}
- cp -rp hadoop-X.Y.Z/share/doc/hadoop /www/hadoop.apache.org/common/docs/rX.Y.Z
+ cp -rp hadoop-X.Y.Z/share/doc/hadoop /www/hadoop.apache.org/common/docs/r${version}
- rm -r hadoop-X.Y.Z
+ rm -r hadoop-${version}
  cd /www/hadoop.apache.org/common/docs/
- ln -s rX.Y.Z current
+ ln -s r${version} current
  }}}
          1. Generate the jdiff API data for the new release by, in the branch directory,
running {{{
- ant -Dversion=X.Y.Z api-xml
+ ant -Dversion${version} api-xml
  }}} then commit the new XML file generated in lib/jdiff to both trunk and to the branch
(and any intermediate branches between trunk and the branch being released). {{{
  svn commit -m "JDiff output for release X.Y.Z"
  }}}

Mime
View raw message