Thomas Tauber-Marshall has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/14568 )

Change subject: IMPALA-9102: Have webserver fall back to --hostname
......................................................................

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 <[email protected]>
Reviewed-by: Thomas Tauber-Marshall <[email protected]>
---
M be/src/service/impala-server.cc
M be/src/util/webserver.cc
M be/src/util/webserver.h
3 files changed, 8 insertions(+), 10 deletions(-)

Approvals:
  Impala Public Jenkins: Verified
  Thomas Tauber-Marshall: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/14568
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I76d9b8b5286aa7cfc72b0ccd43de8dafda7ff9fe
Gerrit-Change-Number: 14568
Gerrit-PatchSet: 4
Gerrit-Owner: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>

Reply via email to