Skip to content

Commit fc20647

Browse files
committed
Merge branch 'trunk' into YARN-10561
2 parents 53f7658 + 02f6bad commit fc20647

File tree

2,151 files changed

+91398
-54538
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,151 files changed

+91398
-54538
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: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Refer to dev-support/docker/Dockerfile):
5757

5858
* Open JDK 1.8
5959
$ sudo apt-get update
60-
$ sudo apt-get -y install java-8-openjdk
60+
$ sudo apt-get -y install openjdk-8-jdk
6161
* Maven
6262
$ sudo apt-get -y install maven
6363
* Native libraries
@@ -326,40 +326,35 @@ to update SNAPSHOTs from external repos.
326326
----------------------------------------------------------------------------------
327327
Importing projects to eclipse
328328

329-
When you import the project to eclipse, install hadoop-maven-plugins at first.
329+
At first, install artifacts including hadoop-maven-plugins at the top of the source tree.
330330

331-
$ cd hadoop-maven-plugins
332-
$ mvn install
331+
$ mvn clean install -DskipTests -DskipShade
333332

334-
Then, generate eclipse project files.
335-
336-
$ mvn eclipse:eclipse -DskipTests
337-
338-
At last, import to eclipse by specifying the root directory of the project via
339-
[File] > [Import] > [Existing Projects into Workspace].
333+
Then, import to eclipse by specifying the root directory of the project via
334+
[File] > [Import] > [Maven] > [Existing Maven Projects].
340335

341336
----------------------------------------------------------------------------------
342337
Building distributions:
343338

344-
Create binary distribution without native code and without documentation:
339+
Create binary distribution without native code and without Javadocs:
345340

346341
$ mvn package -Pdist -DskipTests -Dtar -Dmaven.javadoc.skip=true
347342

348-
Create binary distribution with native code and with documentation:
343+
Create binary distribution with native code:
349344

350-
$ mvn package -Pdist,native,docs -DskipTests -Dtar
345+
$ mvn package -Pdist,native -DskipTests -Dtar
351346

352347
Create source distribution:
353348

354349
$ mvn package -Psrc -DskipTests
355350

356-
Create source and binary distributions with native code and documentation:
351+
Create source and binary distributions with native code:
357352

358-
$ mvn package -Pdist,native,docs,src -DskipTests -Dtar
353+
$ mvn package -Pdist,native,src -DskipTests -Dtar
359354

360355
Create a local staging version of the website (in /tmp/hadoop-site)
361356

362-
$ mvn clean site -Preleasedocs; mvn site:stage -DstagingDirectory=/tmp/hadoop-site
357+
$ mvn site site:stage -Preleasedocs,docs -DstagingDirectory=/tmp/hadoop-site
363358

364359
Note that the site needs to be built in a second pass after other artifacts.
365360

LICENSE-binary

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,16 @@ com.aliyun:aliyun-java-sdk-core:3.4.0
214214
com.aliyun:aliyun-java-sdk-ecs:4.2.0
215215
com.aliyun:aliyun-java-sdk-ram:3.0.0
216216
com.aliyun:aliyun-java-sdk-sts:3.0.0
217-
com.aliyun.oss:aliyun-sdk-oss:3.4.1
217+
com.aliyun.oss:aliyun-sdk-oss:3.13.0
218218
com.amazonaws:aws-java-sdk-bundle:1.11.901
219219
com.cedarsoftware:java-util:1.9.0
220220
com.cedarsoftware:json-io:2.5.1
221-
com.fasterxml.jackson.core:jackson-annotations:2.9.9
222-
com.fasterxml.jackson.core:jackson-core:2.9.9
223-
com.fasterxml.jackson.core:jackson-databind:2.9.9.2
224-
com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.9.9
225-
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.9.9
226-
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.9
221+
com.fasterxml.jackson.core:jackson-annotations:2.13.0
222+
com.fasterxml.jackson.core:jackson-core:2.13.0
223+
com.fasterxml.jackson.core:jackson-databind:2.13.0
224+
com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.0
225+
com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.13.0
226+
com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.13.0
227227
com.fasterxml.uuid:java-uuid-generator:3.1.4
228228
com.fasterxml.woodstox:woodstox-core:5.3.0
229229
com.github.davidmoten:rxjava-extras:0.8.0.17
@@ -250,7 +250,6 @@ commons-codec:commons-codec:1.11
250250
commons-collections:commons-collections:3.2.2
251251
commons-daemon:commons-daemon:1.0.13
252252
commons-io:commons-io:2.8.0
253-
commons-lang:commons-lang:2.6
254253
commons-logging:commons-logging:1.1.3
255254
commons-net:commons-net:3.6
256255
de.ruedigermoeller:fst:2.50
@@ -283,30 +282,30 @@ javax.inject:javax.inject:1
283282
log4j:log4j:1.2.17
284283
net.java.dev.jna:jna:5.2.0
285284
net.minidev:accessors-smart:1.2
286-
net.minidev:json-smart:2.4.2
285+
net.minidev:json-smart:2.4.7
287286
org.apache.avro:avro:1.7.7
288287
org.apache.commons:commons-collections4:4.2
289-
org.apache.commons:commons-compress:1.19
288+
org.apache.commons:commons-compress:1.21
290289
org.apache.commons:commons-configuration2:2.1.1
291290
org.apache.commons:commons-csv:1.0
292291
org.apache.commons:commons-digester:1.8.1
293-
org.apache.commons:commons-lang3:3.7
292+
org.apache.commons:commons-lang3:3.12.0
294293
org.apache.commons:commons-math3:3.1.1
295294
org.apache.commons:commons-text:1.4
296295
org.apache.commons:commons-validator:1.6
297296
org.apache.curator:curator-client:5.2.0
298297
org.apache.curator:curator-framework:5.2.0
299298
org.apache.curator:curator-recipes:5.2.0
300299
org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1
301-
org.apache.hbase:hbase-annotations:1.4.8
302-
org.apache.hbase:hbase-client:1.4.8
303-
org.apache.hbase:hbase-common:1.4.8
304-
org.apache.hbase:hbase-protocol:1.4.8
300+
org.apache.hbase:hbase-annotations:1.7.1
301+
org.apache.hbase:hbase-client:1.7.1
302+
org.apache.hbase:hbase-common:1.7.1
303+
org.apache.hbase:hbase-protocol:1.7.1
305304
org.apache.htrace:htrace-core:3.1.0-incubating
306305
org.apache.htrace:htrace-core4:4.1.0-incubating
307306
org.apache.httpcomponents:httpclient:4.5.6
308307
org.apache.httpcomponents:httpcore:4.4.10
309-
org.apache.kafka:kafka-clients:2.4.0
308+
org.apache.kafka:kafka-clients:2.8.1
310309
org.apache.kerby:kerb-admin:1.0.1
311310
org.apache.kerby:kerb-client:1.0.1
312311
org.apache.kerby:kerb-common:1.0.1
@@ -329,22 +328,22 @@ org.codehaus.jackson:jackson-jaxrs:1.9.13
329328
org.codehaus.jackson:jackson-mapper-asl:1.9.13
330329
org.codehaus.jackson:jackson-xc:1.9.13
331330
org.codehaus.jettison:jettison:1.1
332-
org.eclipse.jetty:jetty-annotations:9.3.27.v20190418
333-
org.eclipse.jetty:jetty-http:9.3.27.v20190418
334-
org.eclipse.jetty:jetty-io:9.3.27.v20190418
335-
org.eclipse.jetty:jetty-jndi:9.3.27.v20190418
336-
org.eclipse.jetty:jetty-plus:9.3.27.v20190418
337-
org.eclipse.jetty:jetty-security:9.3.27.v20190418
338-
org.eclipse.jetty:jetty-server:9.3.27.v20190418
339-
org.eclipse.jetty:jetty-servlet:9.3.27.v20190418
340-
org.eclipse.jetty:jetty-util:9.3.27.v20190418
341-
org.eclipse.jetty:jetty-util-ajax:9.3.27.v20190418
342-
org.eclipse.jetty:jetty-webapp:9.3.27.v20190418
343-
org.eclipse.jetty:jetty-xml:9.3.27.v20190418
344-
org.eclipse.jetty.websocket:javax-websocket-client-impl:9.3.27.v20190418
345-
org.eclipse.jetty.websocket:javax-websocket-server-impl:9.3.27.v20190418
331+
org.eclipse.jetty:jetty-annotations:9.4.44.v20210927
332+
org.eclipse.jetty:jetty-http:9.4.44.v20210927
333+
org.eclipse.jetty:jetty-io:9.4.44.v20210927
334+
org.eclipse.jetty:jetty-jndi:9.4.44.v20210927
335+
org.eclipse.jetty:jetty-plus:9.4.44.v20210927
336+
org.eclipse.jetty:jetty-security:9.4.44.v20210927
337+
org.eclipse.jetty:jetty-server:9.4.44.v20210927
338+
org.eclipse.jetty:jetty-servlet:9.4.44.v20210927
339+
org.eclipse.jetty:jetty-util:9.4.44.v20210927
340+
org.eclipse.jetty:jetty-util-ajax:9.4.44.v20210927
341+
org.eclipse.jetty:jetty-webapp:9.4.44.v20210927
342+
org.eclipse.jetty:jetty-xml:9.4.44.v20210927
343+
org.eclipse.jetty.websocket:javax-websocket-client-impl:9.4.44.v20210927
344+
org.eclipse.jetty.websocket:javax-websocket-server-impl:9.4.44.v20210927
346345
org.ehcache:ehcache:3.3.1
347-
org.lz4:lz4-java:1.6.0
346+
org.lz4:lz4-java:1.7.1
348347
org.objenesis:objenesis:2.6
349348
org.xerial.snappy:snappy-java:1.0.5
350349
org.yaml:snakeyaml:1.16:
@@ -364,7 +363,7 @@ hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/com
364363
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/util/tree.h
365364
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/compat/{fstatat|openat|unlinkat}.h
366365

367-
com.github.luben:zstd-jni:1.4.3-1
366+
com.github.luben:zstd-jni:1.4.9-1
368367
dnsjava:dnsjava:2.1.7
369368
org.codehaus.woodstox:stax2-api:4.2.1
370369

@@ -405,7 +404,7 @@ hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dataTables.bootstrap.css
405404
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dataTables.bootstrap.js
406405
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dust-full-2.0.0.min.js
407406
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dust-helpers-1.1.1.min.js
408-
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery-3.5.1.min.js
407+
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery-3.6.0.min.js
409408
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery.dataTables.min.js
410409
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/moment.min.js
411410
hadoop-tools/hadoop-sls/src/main/html/js/thirdparty/bootstrap.min.js
@@ -495,6 +494,7 @@ javax.annotation:javax.annotation-api:1.3.2
495494
javax.servlet:javax.servlet-api:3.1.0
496495
javax.servlet.jsp:jsp-api:2.1
497496
javax.websocket:javax.websocket-api:1.0
497+
javax.ws.rs:javax.ws.rs-api:2.1.1
498498
javax.ws.rs:jsr311-api:1.1.1
499499
javax.xml.bind:jaxb-api:2.2.11
500500

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dataTables.bootstrap.css
245245
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dataTables.bootstrap.js
246246
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dust-full-2.0.0.min.js
247247
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/dust-helpers-1.1.1.min.js
248-
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery-3.5.1.min.js
248+
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery-3.6.0.min.js
249249
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/jquery.dataTables.min.js
250250
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/static/moment.min.js
251251
hadoop-tools/hadoop-sls/src/main/html/js/thirdparty/bootstrap.min.js

NOTICE-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ available from http://www.digip.org/jansson/.
6666

6767

6868
AWS SDK for Java
69-
Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
69+
Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
7070

7171
This product includes software developed by
7272
Amazon Technologies, Inc (http://www.amazon.com/).

dev-support/Jenkinsfile

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,28 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
def getGithubAndJiraCreds() {
18+
def getGithubCreds() {
1919
return [usernamePassword(credentialsId: 'apache-hadoop-at-github.com',
2020
passwordVariable: 'GITHUB_TOKEN',
21-
usernameVariable: 'GITHUB_USER'),
22-
usernamePassword(credentialsId: 'hadoopqa-at-asf-jira',
23-
passwordVariable: 'JIRA_PASSWORD',
24-
usernameVariable: 'JIRA_USER')]
21+
usernameVariable: 'GITHUB_USER')]
22+
}
23+
24+
// Publish JUnit results only if there are XML files under surefire-reports
25+
def publishJUnitResults() {
26+
def findCmdExitCode = sh script: "find ${SOURCEDIR} -wholename */target/surefire-reports/*.xml | egrep .", returnStatus: true
27+
boolean surefireReportsExist = findCmdExitCode == 0
28+
if (surefireReportsExist) {
29+
echo "XML files found under surefire-reports, running junit"
30+
// The path should be relative to WORKSPACE for the junit.
31+
SRC = "${SOURCEDIR}/**/target/surefire-reports/*.xml".replace("$WORKSPACE/","")
32+
try {
33+
junit "${SRC}"
34+
} catch(e) {
35+
echo 'junit processing: ' + e.toString()
36+
}
37+
} else {
38+
echo "No XML files found under surefire-reports, skipping junit"
39+
}
2540
}
2641

2742
pipeline {
@@ -112,7 +127,7 @@ pipeline {
112127
}
113128

114129
steps {
115-
withCredentials(getGithubAndJiraCreds()) {
130+
withCredentials(getGithubCreds()) {
116131
sh '''#!/usr/bin/env bash
117132
118133
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -158,7 +173,7 @@ pipeline {
158173
}
159174

160175
steps {
161-
withCredentials(getGithubAndJiraCreds()) {
176+
withCredentials(getGithubCreds()) {
162177
sh '''#!/usr/bin/env bash
163178
164179
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -204,7 +219,7 @@ pipeline {
204219
}
205220

206221
steps {
207-
withCredentials(getGithubAndJiraCreds()) {
222+
withCredentials(getGithubCreds()) {
208223
sh '''#!/usr/bin/env bash
209224
210225
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -247,7 +262,7 @@ pipeline {
247262
}
248263

249264
steps {
250-
withCredentials(getGithubAndJiraCreds()) {
265+
withCredentials(getGithubCreds()) {
251266
sh '''#!/usr/bin/env bash
252267
253268
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -290,12 +305,7 @@ pipeline {
290305
reportName: 'Yetus Report'
291306
])
292307

293-
// Publish JUnit results
294-
try {
295-
junit "${SOURCEDIR}/**/target/surefire-reports/*.xml"
296-
} catch(e) {
297-
echo 'junit processing: ' + e.toString()
298-
}
308+
publishJUnitResults()
299309
}
300310
}
301311

dev-support/bin/hadoop.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function shadedclient_initialize
513513
maven_add_install shadedclient
514514
}
515515

516-
## @description build client facing shaded artifacts and test them
516+
## @description build client facing shaded and non-shaded artifacts and test them
517517
## @audience private
518518
## @stability evolving
519519
## @param repostatus
@@ -546,13 +546,20 @@ function shadedclient_rebuild
546546
return 0
547547
fi
548548

549-
big_console_header "Checking client artifacts on ${repostatus}"
549+
big_console_header "Checking client artifacts on ${repostatus} with shaded clients"
550550

551551
echo_and_redirect "${logfile}" \
552552
"${MAVEN}" "${MAVEN_ARGS[@]}" verify -fae --batch-mode -am \
553553
"${modules[@]}" \
554554
-Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true
555555

556+
big_console_header "Checking client artifacts on ${repostatus} with non-shaded clients"
557+
558+
echo_and_redirect "${logfile}" \
559+
"${MAVEN}" "${MAVEN_ARGS[@]}" verify -fae --batch-mode -am \
560+
"${modules[@]}" \
561+
-DskipShade -Dtest=NoUnitTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true
562+
556563
count=$("${GREP}" -c '\[ERROR\]' "${logfile}")
557564
if [[ ${count} -gt 0 ]]; then
558565
add_vote_table -1 shadedclient "${repostatus} has errors when building and testing our client artifacts."

0 commit comments

Comments
 (0)