IMPALA-4512: Add a script that builds Impala on stock Ubuntu 14.04. This is a simpler alternative to bootstrap_development.sh - it acquires enough dependencies to build, but does not attempt to load the test data or even build the tests. This is sometimes a lightweight testing method used by Apache PPMC members who are voting on a release of an incubating project.
Change-Id: If34e398052a61dfda9825b1cf3a918eb61736048 Reviewed-on: http://gerrit.cloudera.org:8080/5154 Reviewed-by: Jim Apple <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/26805809 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/26805809 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/26805809 Branch: refs/heads/master Commit: 26805809f7fb91537b8068058cb3f7b5dd4fd5de Parents: 9032952 Author: Jim Apple <[email protected]> Authored: Sat Nov 19 18:18:24 2016 -0800 Committer: Impala Public Jenkins <[email protected]> Committed: Tue Nov 29 22:10:58 2016 +0000 ---------------------------------------------------------------------- README.md | 2 +- bin/bootstrap_build.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/26805809/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 9c2d9b1..797e7c5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Impala only supports Linux at the moment. ## Build Instructions -./buildall.sh -notests +See bin/bootstrap_build.sh. ## Export Control Notice http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/26805809/bin/bootstrap_build.sh ---------------------------------------------------------------------- diff --git a/bin/bootstrap_build.sh b/bin/bootstrap_build.sh new file mode 100755 index 0000000..c3bd22b --- /dev/null +++ b/bin/bootstrap_build.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# 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. + +# This script builds Impala from scratch. It is known to work on Ubuntu 14.04. To run it +# you need to have: +# +# 1. At least 8GB of free disk space +# 4. A connection to the internet (parts of the build download dependencies) +# +# To bootstrap a more complete development environment that includes not only building +# Impala but also running and testing it, see bootstrap_development.sh in this directory. + +# Set up some logging and exit conditions: +set -euxo pipefail + +# Install dependencies: +sudo apt-get update +sudo apt-get --yes install g++ gcc git libsasl2-dev libssl-dev make maven openjdk-7-jdk \ + python-dev python-setuptools + +export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ +./buildall.sh -notests -so
