GELOG / docker-ubuntu-hbase

Dockerfile for running HBase on Ubuntu
Apache License 2.0
7 stars 5 forks source link

hbase-site.xml makes container non-restartable #9

Open dav-ell opened 4 years ago

dav-ell commented 4 years ago

First of all, great repo! It does everything I need, even after all these years.

The hbase-site.xml that comes with this repository, however, has a bug here:

  <property>
    <name>hbase.rootdir</name>
    <value>file:///data/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>file:///data/hbase/zookeeper</value>
  </property>

For some reason, when I exec into the container, I see my data saved at /data/hbase, as expected, but the zookeeper info is saved at "file:/data/hbase/zookeeper". It's very odd, but because of that, when the container shuts down and I go to restart it, it doesn't work. The fix is just to change it to this:

  <property>
    <name>hbase.rootdir</name>
    <value>/data/hbase</value>
  </property>
  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>/data/hbase/zookeeper</value>
  </property>

Any chance of this getting fixed in the repo and updated on docker hub? Or do I need to fork the repo and do it myself under my user?

Thanks!