Skip to content

Commit 50c231e

Browse files
authored
Merge pull request #2 from apache/trunk
merge
2 parents 20e0e05 + 5157118 commit 50c231e

File tree

4,688 files changed

+110138
-395035
lines changed

Some content is hidden

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

4,688 files changed

+110138
-395035
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*.suo
1010
*.vcxproj.user
1111
*.patch
12+
*.diff
1213
.idea
1314
.svn
1415
.classpath
@@ -51,15 +52,10 @@ patchprocess/
5152
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package-lock.json
5253
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/yarn-error.log
5354

54-
# Ignore files generated by HDDS acceptance tests.
55-
hadoop-ozone/acceptance-test/docker-compose.log
56-
hadoop-ozone/acceptance-test/junit-results.xml
57-
5855
#robotframework outputs
5956
log.html
6057
output.xml
6158
report.html
6259

63-
hadoop-hdds/docs/public
6460

6561
.mvn

BUILDING.txt

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Optional packages:
8585
* Linux FUSE
8686
$ sudo apt-get install fuse libfuse-dev
8787
* ZStandard compression
88-
$ sudo apt-get install zstd
88+
$ sudo apt-get install libzstd1-dev
8989
* PMDK library for storage class memory(SCM) as HDFS cache backend
9090
Please refer to http://pmem.io/ and https://github.com/pmem/pmdk
9191

@@ -104,8 +104,6 @@ Maven main modules:
104104
- hadoop-hdfs-project (Hadoop HDFS)
105105
- hadoop-yarn-project (Hadoop YARN)
106106
- hadoop-mapreduce-project (Hadoop MapReduce)
107-
- hadoop-ozone (Hadoop Ozone)
108-
- hadoop-hdds (Hadoop Distributed Data Store)
109107
- hadoop-tools (Hadoop tools like Streaming, Distcp, etc.)
110108
- hadoop-dist (Hadoop distribution assembler)
111109
- hadoop-client-modules (Hadoop client modules)
@@ -419,6 +417,47 @@ Building command example:
419417
Note that the command above manually specified the openssl library and include
420418
path. This is necessary at least for Homebrewed OpenSSL.
421419

420+
421+
----------------------------------------------------------------------------------
422+
423+
Building on CentOS 8
424+
425+
----------------------------------------------------------------------------------
426+
427+
428+
* Install development tools such as GCC, autotools, OpenJDK and Maven.
429+
$ sudo dnf group install --with-optional 'Development Tools'
430+
$ sudo dnf install java-1.8.0-openjdk-devel maven
431+
432+
* Install Protocol Buffers v3.7.1.
433+
$ git clone https://github.com/protocolbuffers/protobuf
434+
$ cd protobuf
435+
$ git checkout v3.7.1
436+
$ autoreconf -i
437+
$ ./configure --prefix=/usr/local
438+
$ make
439+
$ sudo make install
440+
$ cd ..
441+
442+
* Install libraries provided by CentOS 8.
443+
$ sudo dnf install libtirpc-devel zlib-devel lz4-devel bzip2-devel openssl-devel cyrus-sasl-devel libpmem-devel
444+
445+
* Install optional dependencies (snappy-devel).
446+
$ sudo dnf --enablerepo=PowerTools snappy-devel
447+
448+
* Install optional dependencies (libzstd-devel).
449+
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
450+
$ sudo dnf --enablerepo=epel install libzstd-devel
451+
452+
* Install optional dependencies (isa-l).
453+
$ sudo dnf --enablerepo=PowerTools install nasm
454+
$ git clone https://github.com/intel/isa-l
455+
$ cd isa-l/
456+
$ ./autogen.sh
457+
$ ./configure
458+
$ make
459+
$ sudo make install
460+
422461
----------------------------------------------------------------------------------
423462

424463
Building on Windows

Jenkinsfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pipeline {
3535
DOCKERFILE = "${SOURCEDIR}/dev-support/docker/Dockerfile"
3636
YETUS='yetus'
3737
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
38-
YETUS_VERSION='rel/0.10.0'
38+
YETUS_VERSION='rel/0.12.0'
3939
}
4040

4141
parameters {
@@ -61,7 +61,7 @@ pipeline {
6161
steps {
6262
withCredentials(
6363
[usernamePassword(credentialsId: 'apache-hadoop-at-git.colasdn.top',
64-
passwordVariable: 'GITHUB_PASSWORD',
64+
passwordVariable: 'GITHUB_TOKEN',
6565
usernameVariable: 'GITHUB_USER'),
6666
usernamePassword(credentialsId: 'hadoopqa-at-asf-jira',
6767
passwordVariable: 'JIRA_PASSWORD',
@@ -105,8 +105,7 @@ pipeline {
105105
YETUS_ARGS+=("--html-report-file=${WORKSPACE}/${PATCHDIR}/report.html")
106106
107107
# enable writing back to Github
108-
YETUS_ARGS+=(--github-password="${GITHUB_PASSWORD}")
109-
YETUS_ARGS+=(--github-user=${GITHUB_USER})
108+
YETUS_ARGS+=(--github-token="${GITHUB_TOKEN}")
110109
111110
# enable writing back to ASF JIRA
112111
YETUS_ARGS+=(--jira-password="${JIRA_PASSWORD}")
@@ -135,7 +134,7 @@ pipeline {
135134
YETUS_ARGS+=("--plugins=all")
136135
137136
# use Hadoop's bundled shelldocs
138-
YETUS_ARGS+=("--shelldocs=/testptch/hadoop/dev-support/bin/shelldocs")
137+
YETUS_ARGS+=("--shelldocs=${WORKSPACE}/${SOURCEDIR}/dev-support/bin/shelldocs")
139138
140139
# don't let these tests cause -1s because we aren't really paying that
141140
# much attention to them
@@ -147,11 +146,14 @@ pipeline {
147146
YETUS_ARGS+=("--dockerfile=${DOCKERFILE}")
148147
149148
# effectively treat dev-suport as a custom maven module
150-
YETUS_ARGS+=("--skip-dir=dev-support")
149+
YETUS_ARGS+=("--skip-dirs=dev-support")
151150
152151
# help keep the ASF boxes clean
153152
YETUS_ARGS+=("--sentinel")
154153
154+
# use emoji vote so it is easier to find the broken line
155+
YETUS_ARGS+=("--github-use-emoji-vote")
156+
155157
"${TESTPATCHBIN}" "${YETUS_ARGS[@]}"
156158
'''
157159
}

LICENSE-binary

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,15 @@ commons-lang:commons-lang:2.6
254254
commons-logging:commons-logging:1.1.3
255255
commons-net:commons-net:3.6
256256
de.ruedigermoeller:fst:2.50
257-
io.grpc:grpc-context:1.15.1
258-
io.grpc:grpc-core:1.15.1
259-
io.grpc:grpc-netty:1.15.1
260-
io.grpc:grpc-protobuf:1.15.1
261-
io.grpc:grpc-protobuf-lite:1.15.1
262-
io.grpc:grpc-stub:1.15.1
257+
io.grpc:grpc-api:1.26.0
258+
io.grpc:grpc-context:1.26.0
259+
io.grpc:grpc-core:1.26.0
260+
io.grpc:grpc-netty:1.26.0
261+
io.grpc:grpc-protobuf:1.26.0
262+
io.grpc:grpc-protobuf-lite:1.26.0
263+
io.grpc:grpc-stub:1.26.0
263264
io.netty:netty:3.10.6.Final
264-
io.netty:netty-all:4.0.52.Final
265-
io.netty:netty-all:4.1.27.Final
265+
io.netty:netty-all:4.1.42.Final
266266
io.netty:netty-buffer:4.1.27.Final
267267
io.netty:netty-codec:4.1.27.Final
268268
io.netty:netty-codec-http:4.1.27.Final
@@ -282,7 +282,6 @@ io.swagger:swagger-annotations:1.5.4
282282
javax.inject:javax.inject:1
283283
log4j:log4j:1.2.17
284284
net.java.dev.jna:jna:5.2.0
285-
net.jpountz.lz4:lz4:1.2.0
286285
net.minidev:accessors-smart:1.2
287286
net.minidev:json-smart:2.3
288287
org.apache.avro:avro:1.7.7
@@ -307,7 +306,7 @@ org.apache.htrace:htrace-core:3.1.0-incubating
307306
org.apache.htrace:htrace-core4:4.1.0-incubating
308307
org.apache.httpcomponents:httpclient:4.5.6
309308
org.apache.httpcomponents:httpcore:4.4.10
310-
org.apache.kafka:kafka-clients:0.8.2.1
309+
org.apache.kafka:kafka-clients:2.4.0
311310
org.apache.kerby:kerb-admin:1.0.1
312311
org.apache.kerby:kerb-client:1.0.1
313312
org.apache.kerby:kerb-common:1.0.1
@@ -345,7 +344,8 @@ org.eclipse.jetty:jetty-xml:9.3.27.v20190418
345344
org.eclipse.jetty.websocket:javax-websocket-client-impl:9.3.27.v20190418
346345
org.eclipse.jetty.websocket:javax-websocket-server-impl:9.3.27.v20190418
347346
org.ehcache:ehcache:3.3.1
348-
org.objenesis:objenesis:1.0:compile
347+
org.lz4:lz4-java:1.6.0
348+
org.objenesis:objenesis:2.6
349349
org.xerial.snappy:snappy-java:1.0.5
350350
org.yaml:snakeyaml:1.16:
351351
org.wildfly.openssl:wildfly-openssl:1.0.7.Final
@@ -364,6 +364,7 @@ hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/com
364364
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/util/tree.h
365365
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/compat/{fstatat|openat|unlinkat}.h
366366

367+
com.github.luben:zstd-jni:1.4.3-1
367368
dnsjava:dnsjava:2.1.7
368369
org.codehaus.woodstox:stax2-api:3.1.4
369370

@@ -384,7 +385,7 @@ com.google.protobuf:protobuf-java:3.6.1
384385
com.google.re2j:re2j:1.1
385386
com.jcraft:jsch:0.1.54
386387
com.thoughtworks.paranamer:paranamer:2.3
387-
javax.activation:javax.activation-api:1.2.0
388+
jakarta.activation:jakarta.activation-api:1.2.1
388389
org.fusesource.leveldbjni:leveldbjni-all:1.8
389390
org.jline:jline:3.9.0
390391
org.hamcrest:hamcrest-core:1.3

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,26 @@ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/st
256256
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/jquery
257257
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/jt/jquery.jstree.js
258258
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/resources/TERMINAL
259+
260+
=======
261+
For hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/utils/cJSON.[ch]:
262+
263+
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
264+
265+
Permission is hereby granted, free of charge, to any person obtaining a copy
266+
of this software and associated documentation files (the "Software"), to deal
267+
in the Software without restriction, including without limitation the rights
268+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
269+
copies of the Software, and to permit persons to whom the Software is
270+
furnished to do so, subject to the following conditions:
271+
272+
The above copyright notice and this permission notice shall be included in
273+
all copies or substantial portions of the Software.
274+
275+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
276+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
277+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
278+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
279+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
280+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
281+
THE SOFTWARE.

dev-support/bin/create-release

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ function set_defaults
204204
DOCKERFILE="${BASEDIR}/dev-support/docker/Dockerfile"
205205
DOCKERRAN=false
206206

207+
CPU_ARCH=$(echo "$MACHTYPE" | cut -d- -f1)
208+
if [ "$CPU_ARCH" = "aarch64" ]; then
209+
DOCKERFILE="${BASEDIR}/dev-support/docker/Dockerfile_aarch64"
210+
fi
211+
207212
# Extract Java version from ${BASEDIR}/pom.xml
208213
# doing this outside of maven means we can do this before
209214
# the docker container comes up...
@@ -249,7 +254,9 @@ function startgpgagent
249254
eval $("${GPGAGENT}" --daemon \
250255
--options "${LOGDIR}/gpgagent.conf" \
251256
--log-file="${LOGDIR}/create-release-gpgagent.log")
252-
GPGAGENTPID=$(echo "${GPG_AGENT_INFO}" | cut -f 2 -d:)
257+
GPGAGENTPID=$(pgrep "${GPGAGENT}")
258+
GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent:$GPGAGENTPID:1"
259+
export GPG_AGENT_INFO
253260
fi
254261

255262
if [[ -n "${GPG_AGENT_INFO}" ]]; then
@@ -499,7 +506,12 @@ function dockermode
499506

500507
# we always force build with the OpenJDK JDK
501508
# but with the correct version
502-
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-amd64"
509+
if [ "$CPU_ARCH" = "aarch64" ]; then
510+
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-arm64"
511+
else
512+
echo "ENV JAVA_HOME /usr/lib/jvm/java-${JVM_VERSION}-openjdk-amd64"
513+
fi
514+
503515
echo "USER ${user_name}"
504516
printf "\n\n"
505517
) | docker build -t "${imgname}" -
@@ -639,10 +651,12 @@ function signartifacts
639651

640652
big_console_header "Signing the release"
641653

642-
for i in ${ARTIFACTS_DIR}/*; do
654+
run cd "${ARTIFACTS_DIR}"
655+
for i in *; do
643656
${GPG} --use-agent --armor --output "${i}.asc" --detach-sig "${i}"
644657
sha512sum --tag "${i}" > "${i}.sha512"
645658
done
659+
run cd "${BASEDIR}"
646660

647661
if [[ "${ASFRELEASE}" = true ]]; then
648662
echo "Fetching the Apache Hadoop KEYS file..."

dev-support/bin/dist-copynativelibs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function bundle_native_bin
7272
fi
7373

7474
cd "${libdir}" || exit 1
75-
${TAR} ./*"${libpattern}"* | (cd "${TARGET_BIN_DIR}"/ || exit 1 ; ${UNTAR})
75+
${TAR} ./*"${binpattern}"* | (cd "${TARGET_BIN_DIR}"/ || exit 1 ; ${UNTAR})
7676
if [[ $? -ne 0 ]]; then
7777
echo "Bundling bin files for ${binoption} failed"
7878
exit 1
@@ -152,13 +152,13 @@ if [[ -d "${LIB_DIR}" ]]; then
152152
exit 1
153153
fi
154154

155-
bundle_native_lib "${SNAPPYLIBBUNDLE}" "snappy.lib" "snappy" "${SNAPPYLIB}"
155+
bundle_native_lib "${SNAPPYLIBBUNDLE}" "snappy.lib" "libsnappy." "${SNAPPYLIB}"
156156

157-
bundle_native_lib "${ZSTDLIBBUNDLE}" "zstd.lib" "zstd" "${ZSTDLIB}"
157+
bundle_native_lib "${ZSTDLIBBUNDLE}" "zstd.lib" "libzstd." "${ZSTDLIB}"
158158

159-
bundle_native_lib "${OPENSSLLIBBUNDLE}" "openssl.lib" "crypto" "${OPENSSLLIB}"
159+
bundle_native_lib "${OPENSSLLIBBUNDLE}" "openssl.lib" "libcrypto." "${OPENSSLLIB}"
160160

161-
bundle_native_lib "${ISALBUNDLE}" "isal.lib" "isa" "${ISALLIB}"
161+
bundle_native_lib "${ISALBUNDLE}" "isal.lib" "libisal." "${ISALLIB}"
162162

163163
bundle_native_lib "${PMDKBUNDLE}" "pmdk.lib" "pmdk" "${PMDKLIB}"
164164
fi

dev-support/bin/dist-layout-stitching

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ VERSION=$1
2121
# project.build.directory
2222
BASEDIR=$2
2323

24-
#hdds.version
25-
HDDS_VERSION=$3
26-
2724
function run()
2825
{
2926
declare res

dev-support/bin/yetus-wrapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ else
144144
exit 1
145145
fi
146146

147-
if [[ -n "${GPGBIN}" ]]; then
147+
if [[ -n "${GPGBIN}" && ! "${HADOOP_SKIP_YETUS_VERIFICATION}" = true ]]; then
148148
if ! mkdir -p .gpg; then
149149
yetus_error "ERROR: yetus-dl: Unable to create ${HADOOP_PATCHPROCESS}/.gpg"
150150
exit 1

0 commit comments

Comments
 (0)