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

Zoltan Haindrich commented on HIVE-24487:
-----------------------------------------

yeah - that could be the thing we need!

it has this at https://www.testcontainers.org/quickstart/junit_4_quickstart/
{code}
String address = redis.getHost();
Integer port = redis.getFirstMappedPort();
{code}

..it might already be prepared to understand how things change when docker host 
is set ! 

> Use alternate ports for dockerized databases during testing
> -----------------------------------------------------------
>
>                 Key: HIVE-24487
>                 URL: https://issues.apache.org/jira/browse/HIVE-24487
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Priority: Major
>
> like 5432 for postgres and 3306 for mysql
> https://github.com/apache/hive/blob/52cf467836df71485e95b08c9e91e197e9898b79/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/Postgres.java#L35



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

Reply via email to