Skip to content

Commit 137627d

Browse files
committed
fix merge conflict
2 parents 16d9436 + 46b0278 commit 137627d

File tree

1,850 files changed

+81691
-16580
lines changed

Some content is hidden

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

1,850 files changed

+81691
-16580
lines changed

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: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ 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
@@ -290,23 +289,23 @@ 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

@@ -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

dev-support/Jenkinsfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
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')]
2522
}
2623

2724
// Publish JUnit results only if there are XML files under surefire-reports
@@ -30,8 +27,10 @@ def publishJUnitResults() {
3027
boolean surefireReportsExist = findCmdExitCode == 0
3128
if (surefireReportsExist) {
3229
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/","")
3332
try {
34-
junit "${SOURCEDIR}/**/target/surefire-reports/*.xml"
33+
junit "${SRC}"
3534
} catch(e) {
3635
echo 'junit processing: ' + e.toString()
3736
}
@@ -128,7 +127,7 @@ pipeline {
128127
}
129128

130129
steps {
131-
withCredentials(getGithubAndJiraCreds()) {
130+
withCredentials(getGithubCreds()) {
132131
sh '''#!/usr/bin/env bash
133132
134133
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -174,7 +173,7 @@ pipeline {
174173
}
175174

176175
steps {
177-
withCredentials(getGithubAndJiraCreds()) {
176+
withCredentials(getGithubCreds()) {
178177
sh '''#!/usr/bin/env bash
179178
180179
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -220,7 +219,7 @@ pipeline {
220219
}
221220

222221
steps {
223-
withCredentials(getGithubAndJiraCreds()) {
222+
withCredentials(getGithubCreds()) {
224223
sh '''#!/usr/bin/env bash
225224
226225
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"
@@ -263,7 +262,7 @@ pipeline {
263262
}
264263

265264
steps {
266-
withCredentials(getGithubAndJiraCreds()) {
265+
withCredentials(getGithubCreds()) {
267266
sh '''#!/usr/bin/env bash
268267
269268
chmod u+x "${SOURCEDIR}/dev-support/jenkins.sh"

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."
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<code_scheme name="Hadoop" version="173">
19+
<option name="RIGHT_MARGIN" value="100" />
20+
<JavaCodeStyleSettings>
21+
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" />
22+
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" />
23+
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
24+
<value />
25+
</option>
26+
<option name="IMPORT_LAYOUT_TABLE">
27+
<value>
28+
<package name="java" withSubpackages="true" static="false" />
29+
<package name="javax" withSubpackages="true" static="false" />
30+
<emptyLine />
31+
<package name="org.apache.hadoop.thirdparty" withSubpackages="true" static="false" />
32+
<package name="" withSubpackages="true" static="false" />
33+
<emptyLine />
34+
<package name="org.apache" withSubpackages="true" static="false" />
35+
<emptyLine />
36+
<package name="" withSubpackages="true" static="true" />
37+
</value>
38+
</option>
39+
</JavaCodeStyleSettings>
40+
<codeStyleSettings language="JAVA">
41+
<option name="RIGHT_MARGIN" value="100" />
42+
<option name="KEEP_LINE_BREAKS" value="false" />
43+
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
44+
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" />
45+
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" />
46+
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
47+
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" />
48+
<option name="INDENT_CASE_FROM_SWITCH" value="false" />
49+
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
50+
<option name="ALIGN_MULTILINE_RESOURCES" value="false" />
51+
<option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" />
52+
<option name="CALL_PARAMETERS_WRAP" value="1" />
53+
<option name="METHOD_PARAMETERS_WRAP" value="1" />
54+
<option name="RESOURCE_LIST_WRAP" value="5" />
55+
<option name="EXTENDS_LIST_WRAP" value="1" />
56+
<option name="THROWS_LIST_WRAP" value="1" />
57+
<option name="EXTENDS_KEYWORD_WRAP" value="1" />
58+
<option name="THROWS_KEYWORD_WRAP" value="1" />
59+
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
60+
<option name="BINARY_OPERATION_WRAP" value="1" />
61+
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true" />
62+
<option name="TERNARY_OPERATION_WRAP" value="5" />
63+
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
64+
<option name="ASSIGNMENT_WRAP" value="1" />
65+
<option name="METHOD_ANNOTATION_WRAP" value="2" />
66+
<option name="CLASS_ANNOTATION_WRAP" value="2" />
67+
<option name="FIELD_ANNOTATION_WRAP" value="2" />
68+
<option name="VARIABLE_ANNOTATION_WRAP" value="2" />
69+
<indentOptions>
70+
<option name="INDENT_SIZE" value="2" />
71+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
72+
<option name="TAB_SIZE" value="2" />
73+
</indentOptions>
74+
</codeStyleSettings>
75+
</code_scheme>

dev-support/docker/Dockerfile_debian_10

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,25 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2929
RUN echo APT::Install-Recommends "0"\; > /etc/apt/apt.conf.d/10disableextras
3030
RUN echo APT::Install-Suggests "0"\; >> /etc/apt/apt.conf.d/10disableextras
3131

32-
#####
33-
# For installing the latest packages
34-
#####
35-
RUN echo 'deb http://deb.debian.org/debian testing main' >> /etc/apt/sources.list
36-
3732
ENV DEBIAN_FRONTEND noninteractive
3833
ENV DEBCONF_TERSE true
3934

4035
######
4136
# Platform package dependency resolver
4237
######
4338
COPY pkg-resolver pkg-resolver
44-
RUN chmod a+x pkg-resolver/*.sh pkg-resolver/*.py \
45-
&& chmod a+r pkg-resolver/*.json
39+
RUN chmod a+x pkg-resolver/install-pkg-resolver.sh
40+
RUN pkg-resolver/install-pkg-resolver.sh debian:10
4641

4742
######
4843
# Install packages from apt
4944
######
5045
# hadolint ignore=DL3008,SC2046
5146
RUN apt-get -q update \
52-
&& apt-get -q install -y --no-install-recommends python3 \
5347
&& apt-get -q install -y --no-install-recommends $(pkg-resolver/resolve.py debian:10) \
48+
&& echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list \
49+
&& apt-get -q update \
50+
&& apt-get -q install -y --no-install-recommends -t bullseye $(pkg-resolver/resolve.py --release=bullseye debian:10) \
5451
&& apt-get clean \
5552
&& rm -rf /var/lib/apt/lists/*
5653

@@ -85,7 +82,6 @@ ENV HADOOP_SKIP_YETUS_VERIFICATION true
8582
####
8683
# Install packages
8784
####
88-
RUN pkg-resolver/install-common-pkgs.sh
8985
RUN pkg-resolver/install-spotbugs.sh debian:10
9086
RUN pkg-resolver/install-boost.sh debian:10
9187
RUN pkg-resolver/install-protobuf.sh debian:10

0 commit comments

Comments
 (0)