Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
a4835db
YARN-10296. Make ContainerPBImpl#getId/setId synchronized. Contribute…
szilard-nemeth Jun 5, 2020
8b146c1
YARN-10274. Merge QueueMapping and QueueMappingEntity. Contributed by…
szilard-nemeth Jun 5, 2020
545a0a1
HDFS-15386 ReplicaNotFoundException keeps happening in DN after remov…
brfrn169 Jun 5, 2020
8abff51
YARN-10292. FS-CS converter: add an option to enable asynchronous sch…
szilard-nemeth Jun 5, 2020
2326123
HDFS-15359. EC: Allow closing a file with committed blocks. Contribut…
ayushtkn Jun 5, 2020
76fa022
HDFS-15330. Document the ViewFSOverloadScheme details in ViewFS guide…
umamaheswararao Jun 5, 2020
e7dd027
HADOOP-17029. Return correct permission and owner for listing on inte…
abhishekdas99 Jun 5, 2020
cc671b1
HDFS-15389. DFSAdmin should close filesystem and dfsadmin -setBalance…
ayushtkn Jun 6, 2020
3ca1529
HDFS-15394. Add all available fs.viewfs.overload.scheme.target.<schem…
umamaheswararao Jun 6, 2020
a8610c1
HDFS-15396. Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContrac…
ayushtkn Jun 7, 2020
9f242c2
HADOOP-17059. ArrayIndexOfboundsException in ViewFileSystem#listStatu…
liuml07 Jun 8, 2020
0c25131
HADOOP-17047. TODO comment exist in trunk while related issue HADOOP-…
liuml07 Jun 8, 2020
fbb8775
Revert "MAPREDUCE-7277. IndexCache totalMemoryUsed differs from cache…
ericbadger Jun 8, 2020
8525874
HDFS-15211. EC: File write hangs during close in case of Exception du…
ayushtkn Jun 9, 2020
ac5d899
HADOOP-17050 S3A to support additional token issuers
steveloughran Jun 9, 2020
56247db
YARN-10300: appMasterHost not set in RM ApplicationSummary when AM fa…
Jun 9, 2020
635e6a1
HDFS-15376. Update the error about command line POST in httpfs docume…
ayushtkn Jun 10, 2020
b735a77
HDFS-15398. EC: hdfs client hangs due to exception during addBlock. C…
ayushtkn Jun 10, 2020
93b121a
HADOOP-17060. Clarify listStatus and getFileStatus behaviors inconsis…
umamaheswararao Jun 10, 2020
fed6fec
YARN-10312. Add support for yarn logs -logFile to retain backward com…
ericbadger Jun 11, 2020
7c4de59
YARN-10293. Reserved Containers not allocated from available space of…
Jun 12, 2020
e154084
HADOOP-17046. Support downstreams' existing Hadoop-rpc implementation…
vinayakumarb Jun 12, 2020
785b1de
HDFS-15387. FSUsage#DF should consider ViewFSOverloadScheme in proces…
umamaheswararao Jun 12, 2020
719b53a
HDFS-15351. Blocks scheduled count was wrong on truncate. Contributed…
Jun 13, 2020
f41a144
HDFS-15403. NPE in FileIoProvider#transferToSocketFully. Contributed …
tasanuma Jun 15, 2020
81d8a88
SPNEGO TLS verification
macroadster Jun 15, 2020
730a39d
HDFS-15372. Files in snapshots no longer see attribute provider permi…
Jun 16, 2020
fc4ebb0
YARN-10314. YarnClient throws NoClassDefFoundError for WebSocketExcep…
vinayakumarb Jun 17, 2020
c8ed33c
HADOOP-9851. dfs -chown does not like "+" plus sign in user name. Con…
ayushtkn Jun 17, 2020
5b1a56f
YARN-10281. Redundant QueuePath usage in UserGroupMappingPlacementRul…
szilard-nemeth Jun 17, 2020
2bfb228
HADOOP-17020. Improve RawFileSystem Performance (#2063)
mehakmeet Jun 17, 2020
89689c5
YARN-10308. Update javadoc and variable names for YARN service.
macroadster Jun 17, 2020
caf3995
HADOOP-17076: ABFS: Delegation SAS Generator Updates
ThomasMarquardt Jun 17, 2020
9cbd76c
HDFS-15346. FedBalance tool implementation. Contributed by Jinglun.
linyiqun Jun 18, 2020
1237778
HDFS-15406. Improve the speed of Datanode Block Scan. Contributed by …
Jun 18, 2020
edf716a
Revert "HDFS-15372. Files in snapshots no longer see attribute provid…
jojochuang Jun 18, 2020
d50e93c
HDFS-15372. Files in snapshots no longer see attribute provider permi…
Jun 18, 2020
9821b94
HADOOP-16888. [JDK11] Support JDK11 in the precommit job (#2012)
aajisaka Jun 19, 2020
4698414
YARN-9930. Support max running app logic for CapacityScheduler. Contr…
szilard-nemeth Jun 19, 2020
3472c3e
HADOOP-17065. Add Network Counters to ABFS (#2056)
mehakmeet Jun 19, 2020
100ec8e
HADOOP-17009: Embrace Immutability of Java Collections
belugabehr Jun 19, 2020
8fd0fdf
MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred minicluster'. (#2…
iwasakims Jun 19, 2020
b27810a
HDFS-15418. ViewFileSystemOverloadScheme should represent mount links…
umamaheswararao Jun 20, 2020
b2facc8
YARN-9460. QueueACLsManager and ReservationsACLManager should not use…
surendralilhore Jun 20, 2020
17ffcab
HDFS-14546. Document block placement policies. Contributed by Amithsha.
ayushtkn Jun 21, 2020
ce1008f
YARN-10321. Break down TestUserGroupMappingPlacementRule#testMapping …
Jun 22, 2020
201d734
HDFS-15428. Javadocs fails for hadoop-federation-balance. Contributed…
aajisaka Jun 22, 2020
7c02d18
HDFS-15427. Merged ListStatus with Fallback target filesystem and Int…
umamaheswararao Jun 23, 2020
fa14e4b
HADOOP-17068. Client fails forever when namenode ipaddr changed. Cont…
Hexiaoqiao Jun 23, 2020
03f855e
YARN-10316. FS-CS converter: convert maxAppsDefault, maxRunningApps s…
szilard-nemeth Jun 23, 2020
84110d8
HDFS-15383. RBF: Add support for router delegation token without watc…
fengnanli Jun 23, 2020
4b5b54c
HADOOP-17089: WASB: Update azure-storage-java SDK
ThomasMarquardt Jun 24, 2020
6a8fd73
YARN-10279. Avoid unnecessary QueueMappingEntity creations. Contribut…
szilard-nemeth Jun 25, 2020
d5e1bb6
HDFS-15429. mkdirs should work when parent dir is an internalDir and …
umamaheswararao Jun 26, 2020
33d3df7
YARN-10277. CapacityScheduler test TestUserGroupMappingPlacementRule …
szilard-nemeth Jun 26, 2020
6459cc7
YARN-10318. ApplicationHistory Web UI incorrect column indexing. Cont…
szilard-nemeth Jun 26, 2020
e0c1d8a
YARN-10327. Remove duplication of checking for invalid application ID…
szilard-nemeth Jun 26, 2020
2c03524
YARN-6526. Refactoring SQLFederationStateStore by avoiding to recreat…
brahmareddybattula Jun 26, 2020
bed0a3a
HDFS-15436. Default mount table name used by ViewFileSystem should be…
virajith Jun 26, 2020
8db38c9
HDFS-15378. TestReconstructStripedFile#testErasureCodingWorkerXmitsWe…
ayushtkn Jun 27, 2020
c71ce7a
HDFS-15421. IBR leak causes standby NN to be stuck in safe mode.
aajisaka Jun 28, 2020
0be2681
YARN-10328. Fixed ZK Curator NodeExists exception in YARN service AM …
macroadster Jun 29, 2020
74fc13c
YARN-9903: Support reservations continue looking for Node Labels. Con…
Jun 29, 2020
7e73cad
MAPREDUCE-7280. MiniMRYarnCluster has hard-coded timeout waiting to s…
iwasakims Jun 30, 2020
cd188ea
YARN-10331. Upgrade node.js to 10.21.0. (#2106)
aajisaka Jun 30, 2020
4249c04
HADOOP-16798. S3A Committer thread pool shutdown problems. (#1963)
steveloughran Jun 30, 2020
2a67e2b
HDFS-15160. ReplicaMap, Disk Balancer, Directory Scanner and various …
Jun 30, 2020
e8dc862
YARN-9809. Added node manager health status to resource manager regis…
macroadster Jun 30, 2020
9ac498e
HDFS-15416. Improve DataStorage#addStorageLocations() for empty locat…
Hexiaoqiao Jul 1, 2020
de2cb86
HDFS-15410. Add separated config file hdfs-fedbalance-default.xml for…
linyiqun Jul 1, 2020
ff8bb67
HDFS-15374. Add documentation for fedbalance tool. Contributed by Jin…
linyiqun Jul 1, 2020
3b8d0f8
HADOOP-17032. Fix getContentSummary in ViewFileSystem to handle multi…
abhishekdas99 Jul 1, 2020
4e37ad5
HADOOP-17090. Increase precommit job timeout from 5 hours to 20 hours…
aajisaka Jul 1, 2020
6c57be4
HADOOP-17084 Update Dockerfile_aarch64 to use Bionic (#2103). Contrib…
zhaorenhai Jul 1, 2020
9b5557a
YARN-10325. Document max-parallel-apps for Capacity Scheduler. Contri…
szilard-nemeth Jul 1, 2020
04abd0e
YARN-10330. Add missing test scenarios to TestUserGroupMappingPlaceme…
szilard-nemeth Jul 1, 2020
3b5c9a9
HADOOP-16961. ABFS: Adding metrics to AbfsInputStream (#2076)
mehakmeet Jul 3, 2020
e0ceded
HADOOP-17086. ABFS: Making the ListStatus response ignore unknown pro…
bilaharith Jul 3, 2020
1f2a80b
HDFS-15430. create should work when parent dir is internalDir and fal…
umamaheswararao Jul 4, 2020
f86f15c
HDFS-15446. CreateSnapshotOp fails during edit log loading for /.rese…
ayushtkn Jul 4, 2020
d20109c
HADOOP-17058. ABFS: Support for AppendBlob in Hadoop ABFS Driver
ishaniahuja Jul 4, 2020
55a2ae8
HDFS-15450. Fix NN trash emptier to work if ViewFSOveroadScheme enabl…
umamaheswararao Jul 4, 2020
639acb6
HADOOP-17111. Replace Guava Optional with Java8+ Optional. Contribute…
aajisaka Jul 6, 2020
2f500e4
HADOOP-17081. MetricsSystem doesn't start the sink adapters on restar…
mmpataki Jul 6, 2020
834372f
HDFS-15451. Do not discard non-initial block report for provided stor…
shanyu Jul 6, 2020
e820baa
HDFS-15417. RBF: Get the datanode report from cache for federation We…
NickyYe Jul 6, 2020
dc0626b
HDFS-15449. Optionally ignore port number in mount-table name when pi…
umamaheswararao Jul 7, 2020
f77bbc2
HDFS-15312. Apply umask when creating directory by WebHDFS (#2096)
NickyYe Jul 7, 2020
2bbd00d
YARN-10337. Fix failing testcase TestRMHATimelineCollectors.
Jul 5, 2020
4f26454
HDFS-15425. Review Logging of DFSClient. Contributed by Hongbing Wang.
Hexiaoqiao Jul 7, 2020
3a4d05b
YARN-8047. RMWebApp make external class pluggable.
Jul 7, 2020
5b1ed21
HADOOP-17117 Fix typos in hadoop-aws documentation (#2127)
sebastian-nagel Jul 8, 2020
10d2189
YARN-10344. Sync netty versions in hadoop-yarn-csi. (#2126)
aajisaka Jul 9, 2020
dfe6039
YARN-10341. Yarn Service Container Completed event doesn't get proces…
brahmareddybattula Jul 9, 2020
5dd270e
YARN-10333. YarnClient obtain Delegation Token for Log Aggregation Pa…
sunilgovind Jul 9, 2020
f91a8ad
HADOOP-17079. Optimize UGI#getGroups by adding UGI#getGroupsSet. (#2085)
xiaoyuyao Jul 9, 2020
0e694b2
HDFS-15462. Add fs.viewfs.overload.scheme.target.ofs.impl to core-def…
smengcl Jul 9, 2020
3e70006
HDFS-15464: ViewFsOverloadScheme should work when -fs option pointing…
umamaheswararao Jul 12, 2020
84b74b3
HDFS-15447 RBF: Add top real owners metrics for delegation tokens (#2…
fengnanli Jul 12, 2020
b97fea6
HDFS-14498 LeaseManager can loop forever on the file for which create…
Hexiaoqiao Jul 13, 2020
b9fa5e0
HDFS-13934. Multipart uploaders to be created through FileSystem/File…
steveloughran Jul 13, 2020
806d84b
HADOOP-17105. S3AFS - Do not attempt to resolve symlinks in globStatu…
jimmy-zuber-amzn Jul 13, 2020
0427100
YARN-10297. TestContinuousScheduling#testFairSchedulerContinuousSched…
Jul 13, 2020
e62d8f8
HADOOP-17116. Skip Retry INFO logging on first failover from a proxy
hanishakoneru Jul 13, 2020
48f9011
YARN-10348. Allow RM to always cancel tokens after app completes. Con…
ericbadger Jul 13, 2020
380e0f4
HADOOP-16998. WASB : NativeAzureFsOutputStream#close() throwing Illeg…
anoopsjohn Jul 14, 2020
bdce75d
HDFS-15371. Nonstandard characters exist in NameNode.java (#2032)
zhaoyim Jul 14, 2020
4647a60
HADOOP-17022. Tune S3AFileSystem.listFiles() API.
mukund-thakur Jul 14, 2020
317fe45
HADOOP-17127. Use RpcMetrics.TIMEUNIT to initialize rpc queueTime and…
xkrogen Jul 14, 2020
cce5a6f
HDFS-15385 Upgrade boost library to 1.72 (#2051)
GauthamBanasandra Jul 15, 2020
3e7b65c
MAPREDUCE-7284. TestCombineFileInputFormat#testMissingBlocks fails (#…
aajisaka Jul 15, 2020
85d4718
HDFS-15319. Fix INode#isInLatestSnapshot() API. Contributed by Shashi…
bshashikant Jul 15, 2020
8980c23
YARN-10350. TestUserGroupMappingPlacementRule fails
BilwaST Jul 14, 2020
80046d1
MAPREDUCE-7285. Junit class missing from hadoop-mapreduce-client-jobc…
iwasakims Jul 15, 2020
98fcffe
HADOOP-17101. Replace Guava Function with Java8+ Function
amahussein Jul 15, 2020
1f71c4a
HADOOP-17099. Replace Guava Predicate with Java8+ Predicate
amahussein Jul 15, 2020
4083fd5
HADOOP-17129. Validating storage keys in ABFS correctly (#2141)
mehakmeet Jul 16, 2020
b21cb91
HADOOP-17130. Configuration.getValByRegex() shouldn't be updating the…
mukund-thakur Jul 16, 2020
cc71d50
YARN-10339. Fix TimelineClient in NodeManager failing when Simple Htt…
Jul 16, 2020
2ba44a7
HADOOP-16866. Upgrade spotbugs to 4.0.6. (#2146)
iwasakims Jul 17, 2020
6bcb24d
HADOOP-17100. Replace Guava Supplier with Java8+ Supplier in Hadoop. …
ayushtkn Jul 18, 2020
8a9a674
HDFS-15198. RBF: Add test for MountTableRefresherService failed to re…
ayushtkn Jul 18, 2020
9965516
HADOOP-16682. ABFS: Removing unnecessary toString() invocations
bilaharith Jul 18, 2020
4101b0c
HDFS-15476 Make AsyncStream executor private (#2151)
surnaik Jul 19, 2020
2cec50c
HDFS-15463. Add a tool to validate FsImage. (#2140)
szetszwo Jul 20, 2020
9f407bc
HADOOP-17107. hadoop-azure parallel tests not working on recent JDKs …
steveloughran Jul 20, 2020
bb459d4
HADOOP-17136. ITestS3ADirectoryPerformance.testListOperations failing…
mukund-thakur Jul 20, 2020
6cbd885
HDFS-15381. Fix typos corrputBlocksFiles to corruptBlocksFiles. Contr…
ayushtkn Jul 20, 2020
f2033de
HADOOP-17119. Jetty upgrade to 9.4.x causes MR app fail with IOExcept…
ayushtkn Jul 20, 2020
736bed6
[YARN-10353] Log vcores used and cumulative cpu in containers monitor.
ericbadger Jul 20, 2020
3833c61
HDFS-15404. ShellCommandFencer should expose info about source. Contr…
Jul 20, 2020
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
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions BUILDING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Requirements:
* Unix System
* JDK 1.8
* Maven 3.3 or later
* Boost 1.72 (if compiling native code)
* Protocol Buffers 3.7.1 (if compiling native code)
* CMake 3.1 or newer (if compiling native code)
* Zlib devel (if compiling native code)
Expand Down Expand Up @@ -72,6 +73,12 @@ Installing required packages for clean install of Ubuntu 14.04 LTS Desktop:
&& ./configure\
&& make install \
&& rm -rf /opt/protobuf-3.7-src
* Boost
$ 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 \
&& tar --bzip2 -xf boost_1_72_0.tar.bz2 \
&& cd boost_1_72_0 \
&& ./bootstrap.sh --prefix=/usr/ \
&& ./b2 --without-python install

Optional packages:

Expand Down Expand Up @@ -468,6 +475,7 @@ Requirements:
* Windows System
* JDK 1.8
* Maven 3.0 or later
* Boost 1.72
* Protocol Buffers 3.7.1
* CMake 3.1 or newer
* Visual Studio 2010 Professional or Higher
Expand Down
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pipeline {

options {
buildDiscarder(logRotator(numToKeepStr: '5'))
timeout (time: 5, unit: 'HOURS')
timeout (time: 20, unit: 'HOURS')
timestamps()
checkoutToSubdirectory('src')
}
Expand Down Expand Up @@ -154,6 +154,11 @@ pipeline {
# use emoji vote so it is easier to find the broken line
YETUS_ARGS+=("--github-use-emoji-vote")

# test with Java 8 and 11
YETUS_ARGS+=("--java-home=/usr/lib/jvm/java-8-openjdk-amd64")
YETUS_ARGS+=("--multijdkdirs=/usr/lib/jvm/java-11-openjdk-amd64")
YETUS_ARGS+=("--multijdktests=compile")

"${TESTPATCHBIN}" "${YETUS_ARGS[@]}"
'''
}
Expand Down
68 changes: 28 additions & 40 deletions dev-support/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,10 @@ RUN echo APT::Install-Suggests "0"\; >> /etc/apt/apt.conf.d/10disableextras
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_TERSE true

######
# Install common dependencies from packages. Versions here are either
# sufficient or irrelevant.
#
# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default
# Ubuntu Java. See Java section below!
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends \
ant \
apt-utils \
bats \
build-essential \
Expand All @@ -51,11 +45,13 @@ RUN apt-get -q update \
cmake \
curl \
doxygen \
findbugs \
fuse \
g++ \
gcc \
git \
gnupg-agent \
libbcprov-java \
libbz2-dev \
libcurl4-openssl-dev \
libfuse-dev \
Expand All @@ -64,11 +60,13 @@ RUN apt-get -q update \
libsasl2-dev \
libsnappy-dev \
libssl-dev \
libsnappy-dev \
libtool \
libzstd1-dev \
locales \
make \
maven \
openjdk-11-jdk \
openjdk-8-jdk \
pinentry-curses \
pkg-config \
python \
Expand All @@ -86,15 +84,28 @@ RUN apt-get -q update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

######
# Set env vars required to build Hadoop
######
ENV MAVEN_HOME /usr
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV FINDBUGS_HOME /usr

#######
# OpenJDK 8
# Install Boost 1.72 (1.65 ships with Bionic)
#######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends openjdk-8-jdk libbcprov-java \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# hadolint ignore=DL3003
RUN mkdir -p /opt/boost-library \
&& 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 \
&& mv boost_1_72_0.tar.bz2 /opt/boost-library \
&& cd /opt/boost-library \
&& tar --bzip2 -xf boost_1_72_0.tar.bz2 \
&& cd /opt/boost-library/boost_1_72_0 \
&& ./bootstrap.sh --prefix=/usr/ \
&& ./b2 --without-python install \
&& cd /root \
&& rm -rf /opt/boost-library

######
# Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic)
Expand All @@ -113,29 +124,6 @@ RUN mkdir -p /opt/protobuf-src \
ENV PROTOBUF_HOME /opt/protobuf
ENV PATH "${PATH}:/opt/protobuf/bin"

######
# Install Apache Maven 3.6.0 (3.6.0 ships with Bionic)
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends maven \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV MAVEN_HOME /usr
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64

######
# Install findbugs 3.1.0 (3.1.0 ships with Bionic)
# Ant is needed for findbugs
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends findbugs ant \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV FINDBUGS_HOME /usr

####
# Install pylint at fixed version (2.0.0 removed python2 support)
# https://github.com/PyCQA/pylint/issues/2294
Expand All @@ -150,10 +138,10 @@ RUN pip2 install \
RUN pip2 install python-dateutil==2.7.3

###
# Install node.js 8.17.0 for web UI framework (4.2.6 ships with Xenial)
# Install node.js 10.21.0 for web UI framework (4.2.6 ships with Xenial)
###
RUN curl -L -s -S https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y --no-install-recommends nodejs=8.17.0-1nodesource1 \
RUN curl -L -s -S https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y --no-install-recommends nodejs=10.21.0-1nodesource1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g [email protected]
Expand Down
107 changes: 32 additions & 75 deletions dev-support/docker/Dockerfile_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Dockerfile for installing the necessary dependencies for building Hadoop.
# See BUILDING.txt.

FROM ubuntu:xenial
FROM ubuntu:bionic

WORKDIR /root

Expand All @@ -35,24 +35,26 @@ ENV DEBCONF_TERSE true
######
# Install common dependencies from packages. Versions here are either
# sufficient or irrelevant.
#
# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default
# Ubuntu Java. See Java section below!
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends \
ant \
apt-utils \
bats \
build-essential \
bzip2 \
clang \
cmake \
curl \
doxygen \
findbugs \
fuse \
g++ \
gcc \
git \
gnupg-agent \
libbcprov-java \
libbz2-dev \
libcurl4-openssl-dev \
libfuse-dev \
Expand All @@ -65,6 +67,9 @@ RUN apt-get -q update \
libzstd1-dev \
locales \
make \
maven \
openjdk-11-jdk \
openjdk-8-jdk \
pinentry-curses \
pkg-config \
python \
Expand All @@ -74,47 +79,39 @@ RUN apt-get -q update \
python-setuptools \
python-wheel \
rsync \
shellcheck \
software-properties-common \
snappy \
sudo \
valgrind \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

######
# Set env vars required to build Hadoop
######
ENV MAVEN_HOME /usr
# JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003)
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-arm64
ENV FINDBUGS_HOME /usr

#######
# OpenJDK 8
# Install Boost 1.72 (1.65 ships with Bionic)
#######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends openjdk-8-jdk libbcprov-java \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*


######
# Install cmake 3.1.0 (3.5.1 ships with Xenial)
# There is no cmake binary available for aarch64. Build from source.
######
# hadolint ignore=DL3003
RUN mkdir -p /opt/cmake/src \
&& curl -L -s -S \
https://cmake.org/files/v3.1/cmake-3.1.0-1-src.tar.bz2 \
-o /opt/cmake/cmake-src.tar.bz2 \
&& tar xvjf /opt/cmake/cmake-src.tar.bz2 -C /opt/cmake/src \
&& cd /opt/cmake/src \
&& tar xvjf cmake-3.1.0.tar.bz2 \
&& cd cmake-3.1.0 && patch -p0 -i ../cmake-3.1.0-1.patch && mkdir .build && cd .build \
&& ../bootstrap --parallel=2 \
&& make -j2 && ./bin/cpack \
&& tar xzf cmake-3.1.0-Linux-aarch64.tar.gz --strip-components 1 -C /opt/cmake \
&& cd /opt/cmake && rm -rf /opt/cmake/src
ENV CMAKE_HOME /opt/cmake
ENV PATH "${PATH}:/opt/cmake/bin"
RUN mkdir -p /opt/boost-library \
&& 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 \
&& mv boost_1_72_0.tar.bz2 /opt/boost-library \
&& cd /opt/boost-library \
&& tar --bzip2 -xf boost_1_72_0.tar.bz2 \
&& cd /opt/boost-library/boost_1_72_0 \
&& ./bootstrap.sh --prefix=/usr/ \
&& ./b2 --without-python install \
&& cd /root \
&& rm -rf /opt/boost-library

######
# Install Google Protobuf 3.7.1 (2.6.0 ships with Xenial)
# Install Google Protobuf 3.7.1 (3.0.0 ships with Bionic)
######
# hadolint ignore=DL3003
RUN mkdir -p /opt/protobuf-src \
Expand All @@ -130,46 +127,6 @@ RUN mkdir -p /opt/protobuf-src \
ENV PROTOBUF_HOME /opt/protobuf
ENV PATH "${PATH}:/opt/protobuf/bin"

######
# Install Apache Maven 3.3.9 (3.3.9 ships with Xenial)
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends maven \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV MAVEN_HOME /usr

######
# Install findbugs 3.0.1 (3.0.1 ships with Xenial)
# Ant is needed for findbugs
######
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends findbugs ant \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV FINDBUGS_HOME /usr

####
# Install shellcheck (0.4.6, the latest as of 2017-09-26)
####
# hadolint ignore=DL3008
RUN add-apt-repository -y ppa:hvr/ghc \
&& apt-get -q update \
&& apt-get -q install -y --no-install-recommends shellcheck \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

####
# Install bats (0.4.0, the latest as of 2017-09-26, ships with Xenial)
####
# hadolint ignore=DL3008
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends bats \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

####
# Install pylint at fixed version (2.0.0 removed python2 support)
# https://github.com/PyCQA/pylint/issues/2294
Expand All @@ -184,10 +141,10 @@ RUN pip2 install \
RUN pip2 install python-dateutil==2.7.3

###
# Install node.js 8.17.0 for web UI framework (4.2.6 ships with Xenial)
# Install node.js 10.21.0 for web UI framework (4.2.6 ships with Xenial)
###
RUN curl -L -s -S https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y --no-install-recommends nodejs=8.17.0-1nodesource1 \
RUN curl -L -s -S https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get install -y --no-install-recommends nodejs=10.21.0-1nodesource1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g [email protected]
Expand Down
15 changes: 15 additions & 0 deletions hadoop-assemblies/src/main/resources/assemblies/hadoop-tools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
<outputDirectory>/libexec/shellprofile.d</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>../hadoop-federation-balance/src/main/shellprofile.d</directory>
<includes>
<include>*</include>
</includes>
<outputDirectory>/libexec/shellprofile.d</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>../hadoop-extras/src/main/shellprofile.d</directory>
<includes>
Expand Down Expand Up @@ -111,6 +119,13 @@
<include>*-sources.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>../hadoop-federation-balance/target</directory>
<outputDirectory>/share/hadoop/${hadoop.component}/sources</outputDirectory>
<includes>
<include>*-sources.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>../hadoop-extras/target</directory>
<outputDirectory>/share/hadoop/${hadoop.component}/sources</outputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@

<!-- Checks for imports -->
<!-- See http://checkstyle.sf.net/config_import.html -->
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
<module name="IllegalImport">
<property name="regexp" value="true"/>
<property name="illegalPkgs" value="^sun\.[^.]+"/>
<property name="illegalClasses"
value="^com\.google\.common\.base\.(Optional|Function|Predicate|Supplier), ^com\.google\.common\.collect\.(ImmutableListMultimap)"/>
</module>
<module name="RedundantImport"/>
<module name="UnusedImports"/>

Expand Down
Loading