[
https://issues.apache.org/jira/browse/HADOOP-17723?focusedWorklogId=600742&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600742
]
ASF GitHub Bot logged work on HADOOP-17723:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 22/May/21 03:00
Start Date: 22/May/21 03:00
Worklog Time Spent: 10m
Work Description: jojochuang commented on a change in pull request #3037:
URL: https://github.com/apache/hadoop/pull/3037#discussion_r637344440
##########
File path: dev-support/docker/Dockerfile_aarch64
##########
@@ -169,6 +160,9 @@ ENV MAVEN_OPTS -Xms256m -Xmx1536m
# Skip gpg verification when downloading Yetus via yetus-wrapper
ENV HADOOP_SKIP_YETUS_VERIFICATION true
+# Force PhantomJS to be in 'headless' mode, do not connect to Xwindow
+ENV QT_QPA_PLATFORM offscreen
+
Review comment:
The official Ubuntu phantomjs has a caveat: it requires X Window.
(ariya/phantomjs#14376 (comment)). Add environment var
QT_QPA_PLATFORM=offscreen to make it really 'headless". If it's not headless,
the installer fails to execute phantomjs and abort.
##########
File path: dev-support/docker/Dockerfile_aarch64
##########
@@ -150,17 +152,6 @@ RUN pip3 install pylint==2.6.0 python-dateutil==2.8.1
# hadolint ignore=DL3008
RUN npm install -g [email protected]
-###
Review comment:
replaced the custom PhantomJS binary (which was built for Xenial and
does not run on Bionic) with the official phantomjs package for Bionic.
##########
File path: dev-support/docker/Dockerfile_aarch64
##########
@@ -80,12 +80,14 @@ RUN apt-get -q update \
python3-pkg-resources \
python3-setuptools \
python3-wheel \
+ python2.7 \
Review comment:
We need python2.7 package, because
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui installs node-gyp 3.8, which has
dependency on python2 to build.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 600742)
Time Spent: 2h (was: 1h 50m)
> [build] fix the Dockerfile for ARM
> ----------------------------------
>
> Key: HADOOP-17723
> URL: https://issues.apache.org/jira/browse/HADOOP-17723
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 3.3.1, 3.4.0
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Blocker
> Labels: pull-request-available
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Running the create-release script for Hadoop 3.3.1 on an ARM machine, docker
> image fails to build:
> {noformat}
> aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -Iast27/Include -I/usr/include/python3.6m -c
> ast27/Parser/acceler.c -o build/temp.linux-aarch64-3.6/ast27/Parser/acceler.o
>
> In file included from
> ast27/Parser/acceler.c:13:0:
> ast27/Parser/../Include/pgenheaders.h:8:10:
> fatal error: Python.h: No such file or directory
> #include "Python.h"
>
> ^~~~~~~~~~
> compilation terminated.
>
> error: command 'aarch64-linux-gnu-gcc' failed with exit
> status 1
> {noformat}
> The missing Python3.h requires python3-dev package:
> https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
> The PhantomJS binary was built for Xenial, doesn't run after the Dockerfile
> migrated to Bionic/Focal. Fortunately Bionic/Focal has official PhantomJS
> packages.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]