[
https://issues.apache.org/jira/browse/RANGER-5514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065438#comment-18065438
]
Attila Doroszlai commented on RANGER-5514:
------------------------------------------
We use Docker Compose, where the hostname is by default the same as the service
name. We can set it to {{ranger-admin.rangernw}}, but I don't see the reason
why this would be necessary.
> Ranger Admin expects hostname ranger-admin.rangernw
> ---------------------------------------------------
>
> Key: RANGER-5514
> URL: https://issues.apache.org/jira/browse/RANGER-5514
> Project: Ranger
> Issue Type: Bug
> Components: docker
> Affects Versions: 2.8.0
> Reporter: Attila Doroszlai
> Priority: Major
>
> Ranger Admin docker image can only be used if hostname is set to
> {{ranger-admin.rangernw}}, otherwise we get the following errors:
> {code}
> An exception occured: HTTPConnectionPool(host='ranger-admin.rangernw',
> port=6080): Max retries exceeded with url:
> /service/public/v2/api/service/name/dev_hdfs (Caused by
> NameResolutionError("HTTPConnection(host='ranger-admin.rangernw', port=6080):
> Failed to resolve 'ranger-admin.rangernw' ([Errno -2] Name or service not
> known)"))
> An exception occured: HTTPConnectionPool(host='ranger-admin.rangernw',
> port=6080): Max retries exceeded with url:
> /service/public/v2/api/service/name/dev_yarn (Caused by
> NameResolutionError("HTTPConnection(host='ranger-admin.rangernw', port=6080):
> Failed to resolve 'ranger-admin.rangernw' ([Errno -2] Name or service not
> known)"))
> ...
> {code}
> There should be no such restriction, Ranger Admin contaner should use
> {{localhost}} to access itself during setup.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)