dajobe / hbase-docker

HBase running in Docker
https://hub.docker.com/r/dajobe/hbase/
328 stars 189 forks source link

Note about /etc/hosts/ changes #24

Open atfire opened 6 years ago

atfire commented 6 years ago

Not an issue - just a question: are you sure you need to make changes to /etc/hosts to be able to connect to hbase in container? I created an hbase image some time ago and I'm able to connect to it just using localhost:2181

I suggest to try following properties in hbase-site.xml:

<configuration>
<property>
    <name>hbase.cluster.distributed</name>
    <value>true</value>
</property>
<property>
    <name>hbase.regionserver.ipc.address</name>
    <value>0.0.0.0</value>
</property>
<property>
    <name>hbase.master.ipc.address</name>
    <value>0.0.0.0</value>
</property>

(see my comment here too: https://stackoverflow.com/questions/43524733/how-to-specify-rpc-server-port-for-hbase/43540376)

Anyway, this worked for me so I just wanted to help :)

dajobe commented 6 years ago

Hbase is quite fussy about DNS working but I admit I haven't re-confirmed this in some years