Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17723

[build] fix the Dockerfile for ARM

    XMLWordPrintableJSON

Details

    Description

      Running the create-release script for Hadoop 3.3.1 on an ARM machine, docker image fails to build:

          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
      
      
      

      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.

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m