Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
impala/bin/bootstrap_build.sh at master · apache/impala · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
apache
impala
Repository navigation
Code
Pull requests
8
(8)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
impala
/
bin
/
bootstrap_build.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
75 lines (66 loc) · 3.1 KB
master
Breadcrumbs
impala
/
bin
/
bootstrap_build.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
75 lines (66 loc) · 3.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!
/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 versions 20.04,
#
22.04 and 24.04. To run it you need to have:
#
#
1. At least 8GB of free disk space
#
2. 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 non-java dependencies:
#
Kerberos setup would pop up dialog boxes without this
export
DEBIAN_FRONTEND=noninteractive
sudo -E apt-get --quiet update
#
Always install Python 3 and set it to be the default Python
PACKAGES=
'
g++ gcc git libsasl2-dev libssl-dev make ninja-build
python3-dev python3-setuptools python3-venv libffi-dev language-pack-en
libkrb5-dev krb5-admin-server krb5-kdc krb5-user libxml2-dev libxslt-dev wget
vim-common
'
sudo -E apt-get --yes --quiet install
${PACKAGES}
JDK_VERSION=17
if
[[
"
$(
uname -m
)
"
==
'
aarch64
'
]]
;
then
PACKAGE_ARCH=
'
arm64
'
else
PACKAGE_ARCH=
'
amd64
'
fi
sudo apt-get --yes --quiet install openjdk-
${JDK_VERSION}
-jdk openjdk-
${JDK_VERSION}
-source
export
JAVA_HOME=/usr/lib/jvm/java-
${JDK_VERSION}
-openjdk-
${PACKAGE_ARCH}
#
Download Maven since the packaged version is pretty old.
:
${IMPALA_TOOLCHAIN_HOST
:=
native-toolchain.s3.amazonaws.com}
MVN_VERSION=
"
3.9.15
"
if
[
!
-d
"
/usr/local/apache-maven-
${MVN_VERSION}
"
]
;
then
sudo wget -nv \
"
https://
${IMPALA_TOOLCHAIN_HOST}
/maven/apache-maven-
${MVN_VERSION}
-bin.tar.gz
"
sha512sum -c -
<<<
"
33d81e0ec785f0207e3e5e3ffb61863e1dca5784c15ac3fb5ff105f69cffbea484eb8d473ea60467a63f7b0570eef8622f2fed8eee96acbe668aa313391cddb3 apache-maven-${MVN_VERSION}-bin.tar.gz
"
sudo tar -C /usr/local -xzf apache-maven-
${MVN_VERSION}
-bin.tar.gz
sudo ln -s -f /usr/local/apache-maven-
${MVN_VERSION}
/bin/mvn /usr/local/bin
fi
#
Optionally try to prepopulate the m2 directory to save time. Since Maven has
#
improved download parallelism, this now defaults to false.
if
[[
"
${PREPOPULATE_M2_REPOSITORY
:-
false}
"
==
true
]]
;
then
echo
"
>>> Populating m2 directory...
"
if
!
bin/jenkins/populate_m2_directory.py
;
then
echo
"
Failed to prepopulate the m2 directory. Continuing...
"
fi
else
echo
"
>>> Skip populating m2 directory
"
fi
./buildall.sh -notests -noclean
You can’t perform that action at this time.