You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2019/10/08 00:47:00 UTC

[jira] [Resolved] (IMPALA-8978) Native toolchain Centos 6 docker image build is broken

     [ https://issues.apache.org/jira/browse/IMPALA-8978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe McDonnell resolved IMPALA-8978.
-----------------------------------
    Fix Version/s: Impala 3.4.0
       Resolution: Fixed

commit 93611ce63d0faff9a1d293b6545518691654173c
Author: Joe McDonnell <jo...@cloudera.com>
Date: Thu Oct 3 16:49:59 2019 -0700

IMPALA-8978: Fix Centos 6 docker image build issues
 
 Everything needs TLSv1.2 now, and the version of nss that ships
 with Centos 6.6 is too old. We already knew this and were
 installing the nss from Centos 6.8, but we were installing it
 after all the yum-install commands. The yum-install commands
 now fail with TLS issues, so this installs the new nss before
 invoking any other yum-install commands.
 
 Separately, the download for ccache-3.3.3 is failing on Centos 6.
 This failure is not detected, so it produces a docker image that
 uses the built-in ccache. Unfortunately, there are bugs in that
 version of ccache such that cmake does not compile properly. This
 makes multiple changes to fix this:
 1. This changes the URL to a working URL.
 2. This changes postinstall.sh to run the downloads serially
 so that it does not miss the error code.
 3. This adds a check for the ccache version in
 assert-dependencies-present.py
 
 Testing:
 - Built all the docker images
 - Ran a toolchain build with the new docker images
 
 Change-Id: I938a949a16eaf3291e765d67fbb1fd8912b8424f
 Reviewed-on: http://gerrit.cloudera.org:8080/14366
 Reviewed-by: Tim Armstrong <ta...@cloudera.com>
 Tested-by: Joe McDonnell <jo...@cloudera.com>

> Native toolchain Centos 6 docker image build is broken
> ------------------------------------------------------
>
>                 Key: IMPALA-8978
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8978
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 3.4.0
>            Reporter: Joe McDonnell
>            Priority: Blocker
>              Labels: native-toolchain
>             Fix For: Impala 3.4.0
>
>
> When building the centos6 docker image for the native toolchain ([https://github.com/cloudera/native-toolchain/blob/master/docker/redhat6.df] ), there are several errors building the docker container.
> The first is that it fails to get the EPEL repo set up:
> {noformat}
> Loaded plugins: fastestmirror
> Setting up Install Process
> Cannot open: https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm. Skipping.
> Error: Nothing to do
> The command '/bin/sh -c yum-install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm' returned a non-zero code: 1{noformat}
> Changing the https to http gets past this stage (must be something to do with certificates or tls, etc). Then, it fails with:
> {noformat}
> Loaded plugins: fastestmirror
> Setting up Install Process
> Determining fastest mirrors
> Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
> The command '/bin/sh -c yum-install autoconf   automake   bison   byacc   bzip2   ccache  curl   cyrus-sasl   cyrus-sasl-gssapi   cyrus-sasl-devel   cyrus-sasl-plain   flex   gcc   gcc-c++   git   glibc-devel   java-1.8.0-openjdk-devel   krb5-devel   libevent-devel   libffi-devel   libtool   lzo-devel   make   mawk   ncurses-devel   ntp   openssl-devel   pigz   postgresql   postgresql-server   python-devel   python-pip   redhat-lsb   unzip   vim-common   wget   which   xz   zlib-devel' returned a non-zero code: 1{noformat}
> We'll need to find/fix the underlying issue, which is likely to be certificates/tls related.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)