简体   繁体   English

在docker容器中运行HBase

[英]Run HBase inside docker container

I'm trying to setup HBase easily with docker. 我正在尝试使用Docker轻松设置HBase。 I have writen the Dockerfile and run standalone-hbase successfully. 我已经编写了Dockerfile并成功运行了Standalone-hbase。

Everything works like a charm within the container. 一切都像容器中的魅力一样。 I can implement the Java client to get data from RegionServer as well. 我也可以实现Java客户端以从RegionServer获取数据。 But when I move the client outside the container, it doesn't work. 但是,当我将客户端移出容器时,它不起作用。

RegionServer seems to open random ports for RPC requests but we can't expose them after running the docker container. RegionServer似乎为RPC请求打开了随机端口,但运行docker容器后我们无法公开它们。 I have no idea how to solve it, any suggestion? 我不知道如何解决,有什么建议吗?

当我使用--net host启动容器时,它就像一种魅力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM