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/06/26 19:47:00 UTC
[jira] [Commented] (IMPALA-9790) Dockerized daemons should set
--hostname to the resolved IP
[ https://issues.apache.org/jira/browse/IMPALA-9790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17146603#comment-17146603 ]
ASF subversion and git services commented on IMPALA-9790:
---------------------------------------------------------
Commit a11b8b687a97c25d1df09cab4d0bb5d2101cbada in impala's branch refs/heads/master from Tim Armstrong
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=a11b8b6 ]
IMPALA-9790: option to use resolved hostname everywhere
This adds a flag --use_resolved_hostname, which replaces
--hostname with a resolved IP on startup. This is useful
for containerized environments where the hostname -> IP
mapping can be very dynamic.
This flag is used by default in the dockerized minicluster.
This also fixes a bug in the test code that incorrectly
identified command line flags. Specifically it only checked
the suffix, so it confused use_resolved_hostname and hostname.
Change-Id: I0d5cb9c68c60ce8dc838cde9dcf1c590017f5c9a
Reviewed-on: http://gerrit.cloudera.org:8080/16108
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Andrew Sherman <as...@cloudera.com>
> Dockerized daemons should set --hostname to the resolved IP
> -----------------------------------------------------------
>
> Key: IMPALA-9790
> URL: https://issues.apache.org/jira/browse/IMPALA-9790
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Reporter: Tim Armstrong
> Assignee: Tim Armstrong
> Priority: Major
> Fix For: Impala 4.0
>
>
> In light of IMPALA-9788 (and also IMPALA-9026), it probably makes the most sense to avoid using hostnames for internal communication in containerized setups, since container orchestration frameworks tend to do non-trivial things with DNS and hostnames.
> We can do this in the entrypoint script. I tried --hostname=$(hostname -I) and it seemed to work. It might need some improvement to handle cases when there are multiple IPs, etc.
--
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