blob: 3a547a3193e154b67f55a48f6f8340e1162af473 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.8.1
| Rendered using Apache Maven Fluido Skin 1.6
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Hivemall &#x2013; 1. Preparation</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
<script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script>
</head>
<body class="topBarEnabled">
<a href="https://github.com/apache/incubator-hivemall">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
<div id="topbar" class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container"><div class="nav-collapse">
<ul class="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Project <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.html" title="Home">Home</a></li>
<li><a href="download.html" title="Download">Download</a></li>
<li><a href="licenses.html" title="Licenses">Licenses</a></li>
<li><a href="team.html" title="Team">Team</a></li>
<li><a href="poweredby.html" title="Powered By">Powered By</a></li>
<li><a href="http://incubator.apache.org/projects/hivemall.html" title="Incubation Status">Incubation Status</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="userguide/index.html" title="User Guide">User Guide</a></li>
<li><a href="overview.html" title="Overview">Overview</a></li>
<li><a href="https://cwiki.apache.org/confluence/display/HIVEMALL" target="_blank" title="Wiki">Wiki</a></li>
<li><a href="faq.html" title="FAQ">FAQ</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Involved <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li>
<li><a href="https://issues.apache.org/jira/browse/HIVEMALL" target="_blank" title="Issues (Jira)">Issues (Jira)</a></li>
<li><a href="repository.html" title="Source (Git)">Source (Git)</a></li>
<li><a href="https://travis-ci.org/apache/incubator-hivemall" target="_blank" title="Travis CI">Travis CI</a></li>
<li><a href="contributing.html" title="Contributing">Contributing</a></li>
<li><a href="release-guide.html" title="Release Guide">Release Guide</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">ASF <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://www.apache.org/foundation/how-it-works.html" target="_blank" title="How Apache Works">How Apache Works</a></li>
<li><a href="http://www.apache.org/foundation/" target="_blank" title="Foundation">Foundation</a></li>
<li><a href="http://www.apache.org/foundation/sponsorship.html" target="_blank" title="Sponsoring Apache">Sponsoring Apache</a></li>
<li><a href="http://www.apache.org/foundation/thanks.html" target="_blank" title="Thanks">Thanks</a></li>
</ul>
</li>
</ul>
<ul class="nav pull-right"><li>
<a href="https://twitter.com/ApacheHivemall" class="twitter-follow-button" data-show-count="false" data-align="right" data-size="large" data-show-screen-name="true" data-lang="en">Follow ApacheHivemall</a>
<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</li></ul>
</div>
</div>
</div>
</div>
<div class="container">
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h2>Apache Hivemall</h2>
</div>
</div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2019-10-31<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 0.6.0-incubating-SNAPSHOT</li>
</ul>
</div>
<div id="bodyColumn" >
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!-- toc --><h1>1. Preparation</h1>
<div class="section">
<h2><a name="Install_required_softwares"></a>Install required softwares</h2>
<p>GPG and Maven, JDK 8 is mandatory for verification.</p>
<div class="source">
<div class="source"><pre class="prettyprint">brew install gpg gpg-agent pinentry-mac
brew install maven
brew install md5sha1sum
</pre></div></div></div>
<div class="section">
<h2><a name="Import_GPG_KEYS"></a>Import GPG KEYS</h2>
<div class="source">
<div class="source"><pre class="prettyprint"># Download GPG KEYS
wget https://dist.apache.org/repos/dist/dev/incubator/hivemall/KEYS
# import KEYS for GPG verification
gpg --import KEYS
</pre></div></div>
<h1>2. Download all release artifacts</h1>
<div class="source">
<div class="source"><pre class="prettyprint">VERSION=0.5.0
RC_NUMBER=3
wget -e robots=off --no-check-certificate \
-r -np --reject=html,txt,tmp -nH --cut-dirs=5 \
https://dist.apache.org/repos/dist/dev/incubator/hivemall/${VERSION}-incubating-rc${RC_NUMBER}/
</pre></div></div>
<h1>3. Verify SHA512, and GPG signatures.</h1>
<div class="source">
<div class="source"><pre class="prettyprint">cd ${VERSION}-incubating-rc${RC_NUMBER}/
for f in `find . -type f -iname '*.sha512'`; do
echo -n &quot;Verifying ${f%.*} ... &quot;
shasum -a 512 ${f%.*} | cut -f1 -d' ' | diff -Bw - ${f}
if [ $? -eq 0 ]; then
echo 'Valid'
else
echo &quot;SHA512 is Invalid: ${f}&quot; &gt;&amp;2
exit 1
fi
done
echo
for f in `find . -type f -iname '*.asc'`; do
gpg --verify ${f}
if [ $? -eq 0 ]; then
echo &quot;GPG signature is correct: ${f%.*}&quot;
else
echo &quot;GPG signature is Invalid: ${f%.*}&quot; &gt;&amp;2
exit 1
fi
echo
done
</pre></div></div>
<h1>4. Build, Test, and Verify source</h1>
<div class="source">
<div class="source"><pre class="prettyprint">unzip hivemall-${VERSION}-incubating-source-release.zip
cd hivemall-${VERSION}-incubating
# workaround for Maven sign-release-artifacts plugin
export GPG_TTY=$(tty)
# JDK 8 is required for packaging
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
# Try to create artifacts
export MAVEN_OPTS=-XX:MaxMetaspaceSize=256m
# (Optional) Workaround for SSL error `Received fatal alert: protocol_version`
export MAVEN_OPTS=&quot;$MAVEN_OPTS -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2&quot;
# (Optional) Workaround for Surefire error:
# Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter
export _JAVA_OPTIONS=&quot;-Djdk.net.URLClassPath.disableClassPathURLCheck=true&quot;
# Try to create artifacts
# RAT license check and unit tests will be issued
mvn -Papache-release clean install
# Verify Signatures of Release Artifacts
cd target/
for file in `find . -type f -iname '*.asc'`; do
gpg --verify ${file}
done
</pre></div></div></div>
</div>
</div>
<hr/>
<footer>
<div class="container">
<div class="row">
<p>
<small>
Apache Hivemall is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by <a href="http://incubator.apache.org/">the Apache Incubator</a>.
Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications,
and decision making process have stabilized in a manner consistent with other successful ASF projects.
While incubation status is not necessarily a reflection of the completeness or stability of the code,
it does indicate that the project has yet to be fully endorsed by the ASF.
</small>
</p>
</div>
<p id="poweredBy" class="pull-right"> <a href="http://incubator.apache.org/projects/hivemall.html" title="Apache Incubator" class="builtBy"><img class="builtBy" alt="Apache Incubator" src="images/apache-incubator-logo.png" /></a>
</p>
</div>
</footer>
</body>
</html>