You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/02/20 23:50:00 UTC

[jira] [Commented] (IMPALA-9402) bootstrap_system.sh fails to configure PostgreSQL 9 on some CentOS 7 systems

    [ https://issues.apache.org/jira/browse/IMPALA-9402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041372#comment-17041372 ] 

ASF subversion and git services commented on IMPALA-9402:
---------------------------------------------------------

Commit fa383b007154df7885784102af0ad801cb69406f in impala's branch refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=fa383b0 ]

IMPALA-9402: Relax bootstrap condition for PostgreSQL permission tweaks

bin/bootstrap_system.sh was looking for a strict combination of
OS platform / pg_hba.conf location / default authN method
when setting up the default Impala build environment.

This combo proved to be too strict for CentOS 7.4 running with
PostreSQL 9.2, and failed to set up this environment correctly,
which lead to a failure in the dataload phase.

The patch fixes the permission tweak for this combination by relaxing
the initial condition where the tweak may be applied.

Change-Id: I31cbee6c22f9c27b1ff2b9200bb356be14429f39
Reviewed-on: http://gerrit.cloudera.org:8080/15243
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> bootstrap_system.sh fails to configure PostgreSQL 9 on some CentOS 7 systems
> ----------------------------------------------------------------------------
>
>                 Key: IMPALA-9402
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9402
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Laszlo Gaal
>            Assignee: Laszlo Gaal
>            Priority: Critical
>
> {{bin/bootstrap_system.sh}} relaxes the default PostgreSQL security rules to allow password-less operations during data load. It uses {{sed}} to manipulate the contents of the {{pg_hba.conf}} file, see the linesĀ [https://github.com/apache/impala/blob/master/bin/bootstrap_system.sh#L310]
> Unfortunately the {{sed}} patterns are too much system-dependent, which caused a setup failure when a CentOS 7 test platform was set up with PostgreSQL 9.2: the expected default content of pg_hba.conf did not match the script.
> This failure broke the build in the dataload phase with the symptom:
> {code:java}
> 23:36:49 dropdb: could not connect to database template1: FATAL:  Peer authentication failed for user "hiveuser"
> 23:36:49 createdb: could not connect to database template1: FATAL:  Peer authentication failed for user "hiveuser" {code}
> This blocks automatic deployment of an Impala build on such a platform.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org