JiriOndrusek commented on issue #2295:
URL: https://github.com/apache/camel-quarkus/issues/2295#issuecomment-806463684


   @jamesnetherton  I investigated the possibility of using testcontainer with 
hbase test. It could work successfully but only with a few restrictions:
   1 - Ports can not be random (2181, 16000, 16020) - This is caused by the 
fact, that client asks zookeeper about the hbase master location. Zookeeper 
knows only about ports used internally in docker network. If I use random ports 
(mapped via docker), zookeeper still returns the original internal ports and 
client can not connect to them.
   2 - For the same reason as above, there has to be a modification of `hosts` 
to contain a rule for hbase hostname. (without it, client gets from zookeeper 
location with unknown host)
   
   To summarize it:
   
   - If some of the ports 2181, 16000, 16020 is already taken, test will fail. 
   - If there is no rule `127.0.0.1 hbase` in /etc/hosts, test will fail. 
   
   I'm trying to at least rid of the second one restriction, but I think that 
it won't be possible.
   
   Do you think, that it could be possible to require a rule in `hosts` for the 
test?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to