Skip to content
Merged

sync #15

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
e89fd96
HDFS-16474. Make HDFS tail tool cross platform (#4157)
GauthamBanasandra Apr 12, 2022
4539443
HDFS-16484. [SPS]: Fix an infinite loop bug in SPSPathIdProcessor thr…
liubingxing Apr 13, 2022
a7b4e8f
HDFS-14478. Add libhdfs APIs for openFile (#4166)
steveloughran Apr 13, 2022
3b46aae
YARN-11107. When NodeLabel is enabled for a YARN cluster, AM blacklis…
zhangxiping1 Apr 8, 2022
2efab92
HDFS-16479. EC: NameNode should not send a reconstruction work when t…
tasanuma Apr 14, 2022
c65c383
HDFS-16509. Fix decommission UnsupportedOperationException (#4077). C…
cndaimin Apr 14, 2022
cee8c62
HDFS-16456. EC: Decommission a rack with only on dn will fail when th…
lfxy Apr 14, 2022
a6ebc42
HADOOP-18201. Remove endpoint config overrides for ITestS3ARequesterP…
dannycjones Apr 14, 2022
d5cba5c
YARN-11107. Addendum. When NodeLabel is enabled for a YARN cluster, A…
zhangxiping1 Apr 15, 2022
8ea3358
HADOOP-18196. Remove replace-guava from replacer plugin (#4152)
virajjasani Apr 15, 2022
f14f305
HDFS-16526. Add metrics for slow DataNode (#4162)
prasad-acit Apr 15, 2022
cb975c3
HDFS-16534. Split FsDatasetImpl from block pool locks to volume grain…
Hexiaoqiao Apr 17, 2022
dbeeee0
HDFS-16531. Avoid setReplication writing an edit record if old replic…
sodonnel Apr 17, 2022
35d4c02
HDFS-16535. SlotReleaser should reuse the domain socket based on sock…
stiga-huang Apr 18, 2022
900682e
HDFS-16389.Improve NNThroughputBenchmark test mkdirs. (#3819)
jianghuazhu Apr 18, 2022
f74f241
HDFS-16541. Fix a typo in NameNodeLayoutVersion (#4176)
Happy-shi Apr 18, 2022
d7fd61d
HADOOP-18202. create-release fails fatal: unsafe repository (#4188)
steveloughran Apr 18, 2022
52e152f
HDFS-16538. EC decoding failed due to not enough valid inputs (#4167)
liubingxing Apr 19, 2022
ec0ff1d
HDFS-16035. Remove DummyGroupMapping as it is not longer used anywher…
hotcodemacha Apr 19, 2022
98b9c43
HADOOP-18172: Changed scope for isRootInternalDir/getRootFallbackLink…
xinglin Apr 20, 2022
76bbd17
HDFS-16544. EC decoding failed due to invalid buffer (#4179)
liubingxing Apr 20, 2022
4ff8a5d
HDFS-16526. Addendum Add metrics for slow DataNode (#4191)
prasad-acit Apr 20, 2022
a4683be
Revert "HDFS-16531. Avoid setReplication writing an edit record if ol…
Apr 20, 2022
bf4730b
HDFS-16500. Make asynchronous blocks deletion lock and unlock durtion…
smarthanwang Apr 21, 2022
56cfd60
HADOOP-17551. Upgrade maven-site-plugin to 3.11.0 (#4196)
hotcodemacha Apr 21, 2022
b35b744
YARN-11111. Recovery failure when node-label configure-type transit f…
zuston Apr 22, 2022
f84b88d
HADOOP-17564. Fix typo in UnixShellGuide.html (#4195)
hotcodemacha Apr 22, 2022
214f369
HDFS-16556. Fix typos in distcp (#4217)
GuoPhilipse Apr 22, 2022
5ebbacc
HDFS-16552. Fix NPE for TestBlockManager (#4210)
tomscut Apr 23, 2022
aebd55f
HDFS-16519. Add throttler to EC reconstruction (#4101)
cndaimin Apr 23, 2022
acc0e0a
HDFS-16488. [SPS]: Expose metrics to JMX for external SPS (#4035)
tomscut Apr 24, 2022
17d64ba
Revert "HDFS-16488. [SPS]: Expose metrics to JMX for external SPS (#4…
ferhui Apr 24, 2022
1b4dba9
HADOOP-16202. Enhanced openFile(): hadoop-common changes. (#2584/1)
steveloughran Apr 24, 2022
6999acf
HADOOP-16202. Enhanced openFile(): mapreduce and YARN changes. (#2584/2)
steveloughran Apr 24, 2022
e0cd0a8
HADOOP-16202. Enhanced openFile(): hadoop-aws changes. (#2584/3)
steveloughran Apr 24, 2022
44ae2fa
HADOOP-16202. Enhanced openFile(): hadoop-azure changes. (#2584/4)
steveloughran Apr 24, 2022
89279f0
HDFS-16255. RBF: Fix dead link to fedbalance document (#4193)
hotcodemacha Apr 25, 2022
fb13c1e
MAPREDUCE-7246. In MapredAppMasterRest#Mapreduce_Application_Master_I…
hotcodemacha Apr 25, 2022
006767e
YARN-10303. Fixing rest api example, status code error and other typo…
hotcodemacha Apr 26, 2022
f1e5f8e
HDFS-16488. [SPS]: Expose metrics to JMX for external SPS (#4234)
tomscut Apr 26, 2022
d60262f
HADOOP-18167. Add metrics to track delegation token secret manager op…
hchaverri Apr 26, 2022
2632d49
HADOOP-18216. io.file.buffer.size must be positive (#4220)
liever18 Apr 26, 2022
f187e9b
HDFS-16554. Remove unused configuration dfs.namenode.block.deletion.i…
smarthanwang Apr 27, 2022
b4ff49a
HDFS-16539. RBF: Support refreshing/changing router fairness policy c…
kokonguyen191 Apr 27, 2022
6318708
HADOOP-15983. Use jersey-json that is built to use jackson2 (#3988)
pjfanning Apr 28, 2022
bda0881
HDFS-16540 Data locality is lost when DataNode pod restarts in kubern…
huaxiangsun Apr 28, 2022
4e47eb6
Revert "HDFS-16540 Data locality is lost when DataNode pod restarts i…
saintstack Apr 28, 2022
9ed8d60
HDFS-16540. Data locality is lost when DataNode pod restarts in kuber…
saintstack Apr 28, 2022
b9ade7a
HDFS-16528. Reconfigure slow peer enable for Namenode (#4186)
virajjasani Apr 29, 2022
7bd7725
HDFS-16553. Fix checkstyle for the length of BlockManager constructio…
smarthanwang Apr 29, 2022
88155ce
HDFS-16468. Define ssize_t for Windows (#4228)
GauthamBanasandra Apr 29, 2022
23e1511
HDFS-16256. Minor fix in HDFS Fedbalance document (#4192)
hotcodemacha May 2, 2022
4653fcd
HADOOP-18219. Fix shaded client test failure (#4254)
aajisaka May 2, 2022
a74acc7
YARN-10187. Removing hadoop-yarn-project/hadoop-yarn/README as it is …
hotcodemacha May 2, 2022
d4a91bd
YARN-11116. Migrate Times util from SimpleDateFormat to thread-safe D…
jteagles May 2, 2022
2dfa928
HDFS-16521. DFS API to retrieve slow datanodes (#4107)
virajjasani May 2, 2022
9807dfd
HDFS-16562. Upgrade moment.min.js to 2.29.2 (#4240)
dmmkr May 3, 2022
aa917b1
HADOOP-18198. add -mvnargs option to create-release command line (#4239)
steveloughran Apr 27, 2022
6ab7b72
HADOOP-18168. . (#4140)
dannycjones May 3, 2022
6ec39d4
Revert "HADOOP-18168. . (#4140)"
steveloughran May 3, 2022
4230162
HADOOP-18168. Fix S3A ITestMarkerTool use of purged public bucket. (#…
dannycjones May 3, 2022
d346be9
HDFS-16564. Use uint32_t for hdfs_find (#4245)
GauthamBanasandra May 4, 2022
29401c8
HDFS-16520. Improve EC pread: avoid potential reading whole block (#4…
cndaimin May 6, 2022
ae47846
HADOOP-16515. Update the link to compatibility guide (#4226)
hotcodemacha May 7, 2022
01027e5
HDFS-16185. Fix comment in LowRedundancyBlocks.java (#4194)
hotcodemacha May 7, 2022
40a8b9a
HADOOP-17479. Fix the examples of hadoop config prefix (#4197)
hotcodemacha May 7, 2022
a394c2b
HDFS-16572. Fix typo in readme of hadoop-project-dist
GauthamBanasandra May 8, 2022
665ada6
MAPREDUCE-7376. AggregateWordCount fetches wrong results. (#4257). Co…
ayushtkn May 9, 2022
d486ae8
Fix TestDFSStripedInputStreamWithRandomECPolicy (#4291)
cndaimin May 10, 2022
99a83fd
HADOOP-18222. Prevent DelegationTokenSecretManagerMetrics from regist…
hchaverri May 5, 2022
6983aef
HDFS-16568. dfsadmin -reconfig option to start/query reconfig on all …
virajjasani May 11, 2022
09a69f9
YARN-11130. removed unused import (#4276)
slfan1989 May 11, 2022
b62d6ce
YARN-11141. Capacity Scheduler does not support ambiguous queue names…
szilard-nemeth May 11, 2022
eeedc0c
YARN-10850. TimelineService v2 lists containers for all attempts when…
szilard-nemeth May 11, 2022
f143e99
MAPREDUCE-7379. RMContainerRequestor#makeRemoteRequest has confusing …
szilard-nemeth May 11, 2022
9af3eab
YARN-11114. RMWebServices returns only apps matching exactly the subm…
szilard-nemeth Apr 20, 2022
1350539
HDFS-16465. Remove redundant strings.h inclusions (#4279)
GauthamBanasandra May 11, 2022
6a95c3a
HADOOP-18193:Support nested mount points in INodeTree
li-leyang May 9, 2022
d74f328
HDFS-16525.System.err should be used when error occurs in multiple me…
singer-bin May 12, 2022
5e2f433
YARN-11126. ZKConfigurationStore Java deserialisation vulnerability. …
szilard-nemeth May 12, 2022
680af27
HDFS-14750. RBF: Support dynamic handler allocation in routers (#4199)
kokonguyen191 May 13, 2022
dad2900
Revert "HDFS-14750. RBF: Support dynamic handler allocation in router…
ferhui May 13, 2022
eced5be
YARN-11123. ResourceManager webapps test failures due to org.apache.h…
szilard-nemeth May 8, 2022
d2c9eb6
YARN-11073. Avoid unnecessary preemption for tiny queues under certai…
jchenjc May 13, 2022
9c3330c
MAPREDUCE-7377. Remove unused imports in MapReduce project (#4299)
hotcodemacha May 13, 2022
6985f9a
YARN-10080. Support show app id on localizer thread pool (#4283)
hotcodemacha May 13, 2022
6896c35
YARN-11122. Support getClusterNodes API in FederationClientIntercepto…
slfan1989 May 15, 2022
931abbd
YARN-11092. Upgrade jquery ui to 1.13.1 (#4260)
hotcodemacha May 16, 2022
c85b800
HADOOP-18228. Update hadoop-vote to use HADOOP_RC_VERSION dir (#4272)
virajjasani May 16, 2022
79cc0ca
YARN-11133. YarnClient gets the wrong EffectiveMinCapacity value (#4280)
zhuzilong2013 May 16, 2022
a46ef5f
HADOOP-18234. Fix s3a access point xml examples (#4309)
hotcodemacha May 16, 2022
6f261ed
HADOOP-18198. Release 3.3.3: release notes and jdiff files.
steveloughran May 17, 2022
3ecdf39
HADOOP-18237. Upgrade Apache Xerces Java to 2.12.2 (#4318)
hotcodemacha May 17, 2022
f6fa5bd
HADOOP-18229. Fix Hadoop-Common JavaDoc Errors (#4292)
slfan1989 May 18, 2022
0b32c6c
HDFS-16540. Addendum: Data locality is lost when DataNode pod restart…
Hexiaoqiao May 18, 2022
54cd017
YARN-11147. ResourceUsage and QueueCapacities classes provide node la…
9uapaw May 11, 2022
0e6a6d1
YARN-11152. QueueMetrics is leaking memory when creating a new queue …
9uapaw May 16, 2022
78008bc
HADOOP-18245 Extend KMS related exceptions that get mapped to Connect…
kerneltime May 19, 2022
0773fae
HADOOP-18120. Hadoop auth does not handle HTTP Headers in a case-inse…
9uapaw May 20, 2022
fb910bd
HDFS-16453. Upgrade okhttp from 2.7.5 to 4.9.3 (#4229)
hotcodemacha May 20, 2022
0733e96
HADOOP-18224. Upgrade maven compiler plugin to 3.10.1 (#4267)
virajjasani May 20, 2022
8dd3ef1
YARN-10465. Support getNodeToLabels, getLabelsToNodes, getClusterNode…
slfan1989 May 20, 2022
93a1320
HDFS-16582. Expose aggregate latency of slow node as perceived by the…
virajjasani May 21, 2022
4fd4208
HDFS-16584.Record StandbyNameNode information when Balancer is runnin…
jianghuazhu May 22, 2022
5ab7472
HDFS-16586. Purge FsDatasetAsyncDiskService threadgroup; it causes BP…
saintstack May 23, 2022
f390eda
YARN-11162. Set the zk acl for nodes created by ZKConfigurationStore.…
omalley May 24, 2022
f469b0e
HADOOP-18249. Fix getUri() in HttpRequest has been deprecated. (#4335)
slfan1989 May 24, 2022
6787680
YARN-11137. Improve log message in FederationClientInterceptor (#4336)
slfan1989 May 25, 2022
84b0455
HADOOP-18240. Upgrade Yetus to 0.14.0 (#4328)
hotcodemacha May 25, 2022
6b331dd
HADOOP-18251. Fix failure of extracting JIRA id from commit message i…
iwasakims May 26, 2022
0be1fde
HDFS-16561. Handle error returned by strtol
rishabh1704 May 26, 2022
e3e9369
YARN-11128. Fix comments in TestProportionalCapacityPreemptionPolicy*…
hotcodemacha May 26, 2022
297f0f6
HDFS-16583. DatanodeAdminDefaultMonitor can get stuck in an infinite …
sodonnel May 26, 2022
bee538f
HDFS-16585.Add @VisibleForTesting in Dispatcher.java (#4337)
hotcodemacha May 26, 2022
96985f4
HDFS-15225. RBF: Add snapshot counts to content summary in router. (#…
ayushtkn May 27, 2022
dc9b21f
HDFS-16587. Allow configuring the number of JournalNodeRPCServer Hand…
ZanderXu May 28, 2022
995f7b0
HDFS-16597. RBF: Improve RouterRpcServer#reload With Lambda (#4362). …
slfan1989 May 28, 2022
835f39c
HDFS-15878. RBF: Fix TestRouterWebHDFSContractCreate#testSyncable. (#…
HanleyYang May 28, 2022
ba6520f
HADOOP-18269. Misleading method name in DistCpOptions.(#4216)
GuoPhilipse May 30, 2022
21fa693
HADOOP-18238. Fix reentrancy check in SFTPFileSystem.close() (#4330)
hotcodemacha May 30, 2022
5952934
HDFS-16599. Fix typo in hadoop-hdfs-rbf module (#4368). Contributed b…
slfan1989 May 30, 2022
3228142
Make upstream aware of 2.10.2 release.
iwasakims May 31, 2022
7c66266
YARN-11142.Remove unused Imports in Hadoop YARN project (#4381). Cont…
hotcodemacha May 31, 2022
e85f827
HDFS-16603. Improve DatanodeHttpServer With Netty recommended method.…
slfan1989 May 31, 2022
4496e2d
HDFS-16604. Install gtest via FetchContent_Declare in CMake (#4374)
GauthamBanasandra Jun 1, 2022
34a973a
HDFS-16610. Make fsck read timeout configurable (#4384)
sodonnel Jun 1, 2022
712e009
HADOOP-18268. Install maven from Apache archives (#4373)
GauthamBanasandra Jun 2, 2022
7ac2713
HADOOP-18274. Use CMake 3.19.0 in Debian 10 (#4395)
GauthamBanasandra Jun 2, 2022
1cc2416
YARN-10487. Support getQueueUserAcls, listReservations, getApplicatio…
slfan1989 Jun 2, 2022
a406f49
HDFS-16602. Use "defined" directive along with #if (#4371)
GauthamBanasandra Jun 3, 2022
7bd4ac3
HDFS-16563. Namenode WebUI prints sensitive information on Token expi…
prasad-acit Jun 3, 2022
25591ef
HDFS-16595. Slow peer metrics - add median, mad and upper latency lim…
virajjasani Jun 3, 2022
7f08ed0
HDFS-16608. Fix the link in TestClientProtocolForPipelineRecovery (#4…
Samrat002 Jun 6, 2022
a234d00
HADOOP-18275. Update os-maven-plugin to 1.7.0 (#4397)
steveloughran Jun 6, 2022
0a65883
HDFS-16618. sync_file_range error should include more volume/file inf…
virajjasani Jun 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 7 additions & 11 deletions LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ com.google.guava:guava:27.0-jre
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.microsoft.azure:azure-storage:7.0.0
com.nimbusds:nimbus-jose-jwt:9.8.1
com.squareup.okhttp:okhttp:2.7.5
com.squareup.okhttp3:okhttp:4.9.3
com.squareup.okio:okio:1.6.0
com.zaxxer:HikariCP:4.0.3
commons-beanutils:commons-beanutils:1.9.3
Expand Down Expand Up @@ -324,10 +324,6 @@ org.apache.kerby:token-provider:1.0.1
org.apache.solr:solr-solrj:8.8.2
org.apache.yetus:audience-annotations:0.5.0
org.apache.zookeeper:zookeeper:3.6.3
org.codehaus.jackson:jackson-core-asl:1.9.13
org.codehaus.jackson:jackson-jaxrs:1.9.13
org.codehaus.jackson:jackson-mapper-asl:1.9.13
org.codehaus.jackson:jackson-xc:1.9.13
org.codehaus.jettison:jettison:1.1
org.eclipse.jetty:jetty-annotations:9.4.44.v20210927
org.eclipse.jetty:jetty-http:9.4.44.v20210927
Expand Down Expand Up @@ -484,12 +480,12 @@ org.slf4j:slf4j-log4j12:1.7.25
CDDL 1.1 + GPLv2 with classpath exception
-----------------------------------------

com.sun.jersey:jersey-client:1.19
com.sun.jersey:jersey-core:1.19
com.sun.jersey:jersey-guice:1.19
com.sun.jersey:jersey-json:1.19
com.sun.jersey:jersey-server:1.19
com.sun.jersey:jersey-servlet:1.19
com.github.pjfanning:jersey-json:1.20
com.sun.jersey:jersey-client:1.19.4
com.sun.jersey:jersey-core:1.19.4
com.sun.jersey:jersey-guice:1.19.4
com.sun.jersey:jersey-server:1.19.4
com.sun.jersey:jersey-servlet:1.19.4
com.sun.xml.bind:jaxb-impl:2.2.3-1
javax.annotation:javax.annotation-api:1.3.2
javax.servlet:javax.servlet-api:3.1.0
Expand Down
2 changes: 1 addition & 1 deletion dev-support/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pipeline {
environment {
YETUS='yetus'
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
YETUS_VERSION='f9ba0170a5787a5f4662d3769804fef0226a182f'
YETUS_VERSION='rel/0.14.0'
}

parameters {
Expand Down
11 changes: 11 additions & 0 deletions dev-support/bin/create-release
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ function usage
echo "--security Emergency security release"
echo "--sign Use .gnupg dir to sign the artifacts and jars"
echo "--version=[version] Use an alternative version string"
echo "--mvnargs=[args] Extra Maven args to be provided when running mvn commands"
}

function option_parse
Expand Down Expand Up @@ -347,6 +348,9 @@ function option_parse
--version=*)
HADOOP_VERSION=${i#*=}
;;
--mvnargs=*)
MVNEXTRAARGS=${i#*=}
;;
esac
done

Expand Down Expand Up @@ -413,6 +417,9 @@ function option_parse
MVN_ARGS=("-Dmaven.repo.local=${MVNCACHE}")
fi
fi
if [ -n "$MVNEXTRAARGS" ]; then
MVN_ARGS+=("$MVNEXTRAARGS")
fi

if [[ "${SECURITYRELEASE}" = true ]]; then
if [[ ! -d "${BASEDIR}/hadoop-common-project/hadoop-common/src/site/markdown/release/${HADOOP_VERSION}" ]]; then
Expand Down Expand Up @@ -535,6 +542,10 @@ function makearelease

big_console_header "Cleaning the Source Tree"

# Since CVE-2022-24765 in April 2022, git refuses to work in directories
# whose owner != the current user, unless explicitly told to trust it.
git config --global --add safe.directory /build/source

# git clean to clear any remnants from previous build
run "${GIT}" clean -xdf -e /patchprocess

Expand Down
2 changes: 1 addition & 1 deletion dev-support/bin/yetus-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ WANTED="$1"
shift
ARGV=("$@")

HADOOP_YETUS_VERSION=${HADOOP_YETUS_VERSION:-0.13.0}
HADOOP_YETUS_VERSION=${HADOOP_YETUS_VERSION:-0.14.0}
BIN=$(yetus_abs "${BASH_SOURCE-$0}")
BINDIR=$(dirname "${BIN}")

Expand Down
1 change: 1 addition & 0 deletions dev-support/docker/Dockerfile_debian_10
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ ENV HADOOP_SKIP_YETUS_VERIFICATION true
####
# Install packages
####
RUN pkg-resolver/install-cmake.sh debian:10
RUN pkg-resolver/install-spotbugs.sh debian:10
RUN pkg-resolver/install-boost.sh debian:10
RUN pkg-resolver/install-protobuf.sh debian:10
Expand Down
2 changes: 1 addition & 1 deletion dev-support/docker/pkg-resolver/install-maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi

if [ "$version_to_install" == "3.6.3" ]; then
mkdir -p /opt/maven /tmp/maven &&
curl -L -s -S https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz \
curl -L -s -S https://dlcdn.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz \
-o /tmp/maven/apache-maven-3.6.3-bin.tar.gz &&
tar xzf /tmp/maven/apache-maven-3.6.3-bin.tar.gz --strip-components 1 -C /opt/maven
else
Expand Down
1 change: 0 additions & 1 deletion dev-support/docker/pkg-resolver/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"centos:8": "clang"
},
"cmake": {
"debian:10": "cmake",
"ubuntu:focal": "cmake",
"ubuntu:focal::arch64": "cmake"
},
Expand Down
7 changes: 3 additions & 4 deletions dev-support/git-jira-validation/git_jira_fix_version_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@
print("Commit seems reverted. \t\t\t Commit: " + commit)
continue
ACTUAL_PROJECT_JIRA = None
for project_jira in project_jira_keys:
if project_jira in commit:
ACTUAL_PROJECT_JIRA = project_jira
break
matches = re.findall('|'.join(project_jira_keys), commit)
if matches:
ACTUAL_PROJECT_JIRA = matches[0]
if not ACTUAL_PROJECT_JIRA:
print("WARN: Jira not found. \t\t\t Commit: " + commit)
continue
Expand Down
3 changes: 3 additions & 0 deletions dev-support/hadoop-vote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,16 @@ pushd "${OUTPUT_DIR}"
download_and_import_keys
download_release_candidate

pushd "${HADOOP_RC_VERSION}"

execute verify_signatures
execute verify_checksums
execute unzip_from_source
execute rat_test
execute build_from_source
execute build_tar_from_source

popd
popd

print_when_exit
26 changes: 13 additions & 13 deletions hadoop-client-modules/hadoop-client-minicluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -423,29 +423,25 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<groupId>com.github.pjfanning</groupId>
<artifactId>jersey-json</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-xc</artifactId>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand All @@ -467,6 +463,10 @@
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.cal10n</groupId>
<artifactId>cal10n-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- skip org.apache.avro:avro-ipc because it doesn't look like hadoop-common actually uses it -->
Expand Down
20 changes: 16 additions & 4 deletions hadoop-client-modules/hadoop-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<artifactId>jersey-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<groupId>com.github.pjfanning</groupId>
<artifactId>jersey-json</artifactId>
</exclusion>
<exclusion>
Expand Down Expand Up @@ -114,6 +114,18 @@
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-common</artifactId>
</exclusion>
<exclusion>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
Expand Down Expand Up @@ -167,7 +179,7 @@
<artifactId>jersey-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<groupId>com.github.pjfanning</groupId>
<artifactId>jersey-json</artifactId>
</exclusion>
<exclusion>
Expand Down Expand Up @@ -218,7 +230,7 @@
<artifactId>jersey-server</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<groupId>com.github.pjfanning</groupId>
<artifactId>jersey-json</artifactId>
</exclusion>
<exclusion>
Expand Down Expand Up @@ -275,7 +287,7 @@
<artifactId>guice-servlet</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jersey</groupId>
<groupId>com.github.pjfanning</groupId>
<artifactId>jersey-json</artifactId>
</exclusion>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private List<String> getHeaderValues(String name, boolean reset) {
public void addCookie(Cookie cookie) {
super.addCookie(cookie);
List<String> cookies = getHeaderValues("Set-Cookie", false);
cookies.addAll(getHeaderValues("set-cookie", false));
cookies.add(cookie.getName() + "=" + cookie.getValue());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public synchronized Map<String, List<String>> get(URI uri,
@Override
public void put(URI uri, Map<String, List<String>> responseHeaders) {
List<String> headers = responseHeaders.get("Set-Cookie");
if (headers == null) {
headers = responseHeaders.get("set-cookie");
}
if (headers != null) {
for (String header : headers) {
List<HttpCookie> cookies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ private boolean isNegotiate(HttpURLConnection conn) throws IOException {
boolean negotiate = false;
if (conn.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) {
String authHeader = conn.getHeaderField(WWW_AUTHENTICATE);
if (authHeader == null) {
authHeader = conn.getHeaderField(WWW_AUTHENTICATE.toLowerCase());
}
negotiate = authHeader != null && authHeader.trim().startsWith(NEGOTIATE);
}
return negotiate;
Expand Down Expand Up @@ -388,6 +391,9 @@ private byte[] readToken(HttpURLConnection conn)
int status = conn.getResponseCode();
if (status == HttpURLConnection.HTTP_OK || status == HttpURLConnection.HTTP_UNAUTHORIZED) {
String authHeader = conn.getHeaderField(WWW_AUTHENTICATE);
if (authHeader == null) {
authHeader = conn.getHeaderField(WWW_AUTHENTICATE.toLowerCase());
}
if (authHeader == null || !authHeader.trim().startsWith(NEGOTIATE)) {
throw new AuthenticationException("Invalid SPNEGO sequence, '" + WWW_AUTHENTICATE +
"' header incorrect: " + authHeader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,9 @@ && getMaxInactiveInterval() > 0) {
// present.. reset to 403 if not found..
if ((errCode == HttpServletResponse.SC_UNAUTHORIZED)
&& (!httpResponse.containsHeader(
KerberosAuthenticator.WWW_AUTHENTICATE))) {
KerberosAuthenticator.WWW_AUTHENTICATE)
&& !httpResponse.containsHeader(
KerberosAuthenticator.WWW_AUTHENTICATE.toLowerCase()))) {
errCode = HttpServletResponse.SC_FORBIDDEN;
}
// After Jetty 9.4.21, sendError() no longer allows a custom message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,44 @@ public void testExtractTokenFail() throws Exception {
}
}

@Test
public void testExtractTokenCookieHeader() throws Exception {
HttpURLConnection conn = Mockito.mock(HttpURLConnection.class);

Mockito.when(conn.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK);

String tokenStr = "foo";
Map<String, List<String>> headers = new HashMap<>();
List<String> cookies = new ArrayList<>();
cookies.add(AuthenticatedURL.AUTH_COOKIE + "=" + tokenStr);
headers.put("Set-Cookie", cookies);
Mockito.when(conn.getHeaderFields()).thenReturn(headers);

AuthenticatedURL.Token token = new AuthenticatedURL.Token();
AuthenticatedURL.extractToken(conn, token);

Assert.assertTrue(token.isSet());
}

@Test
public void testExtractTokenLowerCaseCookieHeader() throws Exception {
HttpURLConnection conn = Mockito.mock(HttpURLConnection.class);

Mockito.when(conn.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK);

String tokenStr = "foo";
Map<String, List<String>> headers = new HashMap<>();
List<String> cookies = new ArrayList<>();
cookies.add(AuthenticatedURL.AUTH_COOKIE + "=" + tokenStr);
headers.put("set-cookie", cookies);
Mockito.when(conn.getHeaderFields()).thenReturn(headers);

AuthenticatedURL.Token token = new AuthenticatedURL.Token();
AuthenticatedURL.extractToken(conn, token);

Assert.assertTrue(token.isSet());
}

@Test
public void testConnectionConfigurator() throws Exception {
HttpURLConnection conn = Mockito.mock(HttpURLConnection.class);
Expand Down
Loading