Skip to content

Commit 2a38800

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into compression-module
2 parents 3decd63 + d6eb077 commit 2a38800

File tree

2,006 files changed

+92616
-55726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,006 files changed

+92616
-55726
lines changed

.github/pull_request_template.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
## NOTICE
1+
<!--
2+
Thanks for sending a pull request!
3+
1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
4+
2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
5+
-->
6+
7+
### Description of PR
8+
9+
10+
### How was this patch tested?
11+
12+
13+
### For code changes:
14+
15+
- [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
16+
- [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
17+
- [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
18+
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
219

3-
Please create an issue in ASF JIRA before opening a pull request,
4-
and you need to set the title of the pull request which starts with
5-
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
6-
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

BUILDING.txt

Lines changed: 47 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Requirements:
88
* Maven 3.3 or later
99
* Boost 1.72 (if compiling native code)
1010
* Protocol Buffers 3.7.1 (if compiling native code)
11-
* CMake 3.1 or newer (if compiling native code)
11+
* CMake 3.19 or newer (if compiling native code)
1212
* Zlib devel (if compiling native code)
1313
* Cyrus SASL devel (if compiling native code)
14-
* One of the compilers that support thread_local storage: GCC 4.8.1 or later, Visual Studio,
14+
* One of the compilers that support thread_local storage: GCC 9.3.0 or later, Visual Studio,
1515
Clang (community version), Clang (version for iOS 9 and later) (if compiling native code)
1616
* openssl devel (if compiling native hadoop-pipes and to get the best HDFS encryption performance)
1717
* Linux FUSE (Filesystem in Userspace) version 2.6 or above (if compiling fuse_dfs)
@@ -51,39 +51,47 @@ Known issues:
5151
and run your IDE and Docker etc inside that VM.
5252

5353
----------------------------------------------------------------------------------
54-
Installing required packages for clean install of Ubuntu 14.04 LTS Desktop:
54+
Installing required packages for clean install of Ubuntu 18.04 LTS Desktop.
55+
(For Ubuntu 20.04, gcc/g++ and cmake bundled with Ubuntu can be used.
56+
Refer to dev-support/docker/Dockerfile):
5557

56-
* Oracle JDK 1.8 (preferred)
57-
$ sudo apt-get purge openjdk*
58-
$ sudo apt-get install software-properties-common
59-
$ sudo add-apt-repository ppa:webupd8team/java
58+
* Open JDK 1.8
6059
$ sudo apt-get update
61-
$ sudo apt-get install oracle-java8-installer
60+
$ sudo apt-get -y install java-8-openjdk
6261
* Maven
6362
$ sudo apt-get -y install maven
6463
* Native libraries
6564
$ sudo apt-get -y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev libsasl2-dev
65+
* GCC 9.3.0
66+
$ sudo apt-get -y install software-properties-common
67+
$ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
68+
$ sudo apt-get update
69+
$ sudo apt-get -y install g++-9 gcc-9
70+
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
71+
* CMake 3.19
72+
$ curl -L https://cmake.org/files/v3.19/cmake-3.19.0.tar.gz > cmake-3.19.0.tar.gz
73+
$ tar -zxvf cmake-3.19.0.tar.gz && cd cmake-3.19.0
74+
$ ./bootstrap
75+
$ make -j$(nproc)
76+
$ sudo make install
6677
* Protocol Buffers 3.7.1 (required to build native code)
67-
$ mkdir -p /opt/protobuf-3.7-src \
68-
&& curl -L -s -S \
69-
https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz \
70-
-o /opt/protobuf-3.7.1.tar.gz \
71-
&& tar xzf /opt/protobuf-3.7.1.tar.gz --strip-components 1 -C /opt/protobuf-3.7-src \
72-
&& cd /opt/protobuf-3.7-src \
73-
&& ./configure\
74-
&& make install \
75-
&& rm -rf /opt/protobuf-3.7-src
78+
$ curl -L -s -S https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protobuf-java-3.7.1.tar.gz -o protobuf-3.7.1.tar.gz
79+
$ mkdir protobuf-3.7-src
80+
$ tar xzf protobuf-3.7.1.tar.gz --strip-components 1 -C protobuf-3.7-src && cd protobuf-3.7-src
81+
$ ./configure
82+
$ make -j$(nproc)
83+
$ sudo make install
7684
* Boost
77-
$ curl -L https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2/download > boost_1_72_0.tar.bz2 \
78-
&& tar --bzip2 -xf boost_1_72_0.tar.bz2 \
79-
&& cd boost_1_72_0 \
80-
&& ./bootstrap.sh --prefix=/usr/ \
81-
&& ./b2 --without-python install
85+
$ curl -L https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2/download > boost_1_72_0.tar.bz2
86+
$ tar --bzip2 -xf boost_1_72_0.tar.bz2 && cd boost_1_72_0
87+
$ ./bootstrap.sh --prefix=/usr/
88+
$ ./b2 --without-python
89+
$ sudo ./b2 --without-python install
8290

8391
Optional packages:
8492

8593
* Snappy compression (only used for hadoop-mapreduce-client-nativetask)
86-
$ sudo apt-get install snappy libsnappy-dev
94+
$ sudo apt-get install libsnappy-dev
8795
* Intel ISA-L library for erasure coding
8896
Please refer to https://01.org/intel%C2%AE-storage-acceleration-library-open-source-version
8997
(OR https://github.com/01org/isa-l)
@@ -103,7 +111,7 @@ Maven main modules:
103111
- hadoop-project (Parent POM for all Hadoop Maven modules. )
104112
(All plugins & dependencies versions are defined here.)
105113
- hadoop-project-dist (Parent POM for modules that generate distributions.)
106-
- hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs)
114+
- hadoop-annotations (Generates the Hadoop doclet used to generate the Javadocs)
107115
- hadoop-assemblies (Maven assemblies used by the different modules)
108116
- hadoop-maven-plugins (Maven plugins used in project)
109117
- hadoop-build-tools (Build tools like checkstyle, etc.)
@@ -120,7 +128,7 @@ Maven main modules:
120128
----------------------------------------------------------------------------------
121129
Where to run Maven from?
122130

123-
It can be run from any module. The only catch is that if not run from utrunk
131+
It can be run from any module. The only catch is that if not run from trunk
124132
all modules that are not part of the build run must be installed in the local
125133
Maven cache or available in a Maven repository.
126134

@@ -131,11 +139,11 @@ Maven build goals:
131139
* Compile : mvn compile [-Pnative]
132140
* Run tests : mvn test [-Pnative] [-Pshelltest]
133141
* Create JAR : mvn package
134-
* Run findbugs : mvn compile findbugs:findbugs
142+
* Run spotbugs : mvn compile spotbugs:spotbugs
135143
* Run checkstyle : mvn compile checkstyle:checkstyle
136144
* Install JAR in M2 cache : mvn install
137145
* Deploy JAR to Maven repo : mvn deploy
138-
* Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license]
146+
* Run clover : mvn test -Pclover
139147
* Run Rat : mvn apache-rat:check
140148
* Build javadocs : mvn javadoc:javadoc
141149
* Build distribution : mvn package [-Pdist][-Pdocs][-Psrc][-Pnative][-Dtar][-Preleasedocs][-Pyarn-ui]
@@ -176,7 +184,6 @@ Maven build goals:
176184
we silently build a version of libhadoop.so that cannot make use of snappy.
177185
This option is recommended if you plan on making use of snappy and want
178186
to get more repeatable builds.
179-
180187
* Use -Dsnappy.prefix to specify a nonstandard location for the libsnappy
181188
header files and library files. You do not need this option if you have
182189
installed snappy using a package manager.
@@ -453,6 +460,17 @@ Building on CentOS 8
453460
* Install libraries provided by CentOS 8.
454461
$ sudo dnf install libtirpc-devel zlib-devel lz4-devel bzip2-devel openssl-devel cyrus-sasl-devel libpmem-devel
455462

463+
* Install GCC 9.3.0
464+
$ sudo dnf -y install gcc-toolset-9-gcc gcc-toolset-9-gcc-c++
465+
$ source /opt/rh/gcc-toolset-9/enable
466+
467+
* Install CMake 3.19
468+
$ curl -L https://cmake.org/files/v3.19/cmake-3.19.0.tar.gz > cmake-3.19.0.tar.gz
469+
$ tar -zxvf cmake-3.19.0.tar.gz && cd cmake-3.19.0
470+
$ ./bootstrap
471+
$ make -j$(nproc)
472+
$ sudo make install
473+
456474
* Install boost.
457475
$ curl -L -o boost_1_72_0.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2/download
458476
$ tar xjf boost_1_72_0.tar.bz2
@@ -489,7 +507,7 @@ Requirements:
489507
* Maven 3.0 or later
490508
* Boost 1.72
491509
* Protocol Buffers 3.7.1
492-
* CMake 3.1 or newer
510+
* CMake 3.19 or newer
493511
* Visual Studio 2010 Professional or Higher
494512
* Windows SDK 8.1 (if building CPU rate control for the container executor)
495513
* zlib headers (if building native code bindings for zlib)

Jenkinsfile

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)