This repository contains a docker file to build a docker image with Hortonworks Hoya and HBase (for the image we choose HBase but any other application with a Hoya provider should be OK). The Hoya docker file depends on our previous Hadoop docker file/image, available at SequenceIQ GitHub page.
Also the base Hadoop docker image is available as an official Docker image.
Now lets start the Hoya docker image in his own isolated container (the container will span up a process with its own file system, its own networking, and its own isolated process tree, just like a VM).
docker run -i -t sequenceiq/hoya-docker /etc/bootstrap-hoya.sh -bash
The bootsrap script will start Hadoop, YARN and Zookeeper - all these required for HBase/Hoya.
#####Versions Hadoop 2.3, Hoya 0.13, HBase 0.98, Zookeeper 3.3.6
hoya create hbase --role master 1 --role worker 1
--manager localhost:8032
--filesystem hdfs://localhost:9000 --image hdfs://localhost:9000/hbase.tar.gz
--appconf file:///usr/local/hbaseconf/
--zkhosts localhost
This will launch a 2 node HBase cluster (1 Master and 1 RegionServer).
Now lets increase the number of RegionServers.
num_of_workers=$1
hoya flex hbase --role worker $num_of_workers --manager localhost:8032 --filesystem hdfs://localhost:9000
This will start as many RegionServers as specified - in new YARN containers.
Also the size of the cluster can be decreased if the load on the system does not demand for a larger number of RegionServers. The cluster can also be freezed (Hoya takes care about persisting the state).
hoya freeze hbase --manager localhost:8032 --filesystem hdfs://localhost:9000
Finally when you'd like to destroy the cluster and the state associated with the application you can use:
hoya destroy hbase --manager localhost:8032 --filesystem hdfs://localhost:9000
Enjoy.
Content type
Image
Digest
sha256:0edbf6d0e…
Size
501.9 MB
Last updated
almost 11 years ago
docker pull sequenceiq/hoya