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

[jira] [Resolved] (IMPALA-9102) Have webserver fall back to --hostname

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

Thomas Tauber-Marshall resolved IMPALA-9102.
--------------------------------------------
    Resolution: Fixed

commit 5dc5035a794c8a5fbd027b2309e598923f8c60f4
Author: Thomas Tauber-Marshall <tm...@cloudera.com>
Date:   Tue Oct 29 08:52:27 2019 -0700

    IMPALA-9102: Have webserver fall back to --hostname
    
    When the webserver determines its hostname, it first uses the value of
    --webserver_interface. If this is a wildcard address, then it uses the
    value returned by gethostname().
    
    In some setups, gethostname() may return the short name and not the
    fqdn. This is likely undesirable, eg. because this value is used to
    qualify links when Knox proxying is being used, in which case the fqdn
    is required.
    
    In other places in Impala with the same basic issue, we allow users to
    set the desired hostname with the --hostname flag. This patch has the
    webserver fall back to the --hostname flag if --webserver_interface is
    not set. If neither is set, we'll fall back to gethostname().
    
    Testing:
    - Ran existing webserver tests.
    - Manually tested in an environment where gethostname() does not
      return the fqdn
    
    Change-Id: I76d9b8b5286aa7cfc72b0ccd43de8dafda7ff9fe
    Reviewed-on: http://gerrit.cloudera.org:8080/14568
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
    Reviewed-by: Thomas Tauber-Marshall <tm...@cloudera.com>

> Have webserver fall back to --hostname
> --------------------------------------
>
>                 Key: IMPALA-9102
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9102
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: Impala 3.4.0
>            Reporter: Thomas Tauber-Marshall
>            Assignee: Thomas Tauber-Marshall
>            Priority: Blocker
>
> When the webserver determines its hostname, it first uses the value of --webserver_interface. If this is a wildcard address, then it uses the value returned by gethostname()
> In some setups, gethostname() may return the short name and not the fqdn. This is likely undesirable, eg. because it likely leads to the links to other daemons on the /backends page not working.
> In other places in Impala with the same basic issue, we allow users to set the desired hostname with the --hostname flag. We should have the webserver fall back to the value of --hostname, if set, before resorting to calling gethostname()



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