1
This charm deploys http://opentsdb.net from its git repository, on top of a
2
juju provided hbase cluster.
4
To use it, you need to deploy an hbase cluster, create a relation between the hbase quorum zookeeper and opentsdb and finally expose opentsdb.
6
For instance (using the example-hadoop.yaml included with this charm)::
7
juju deploy hbase hbase-master
8
juju deploy hbase hbase-regioncluster-01
9
juju deploy zookeeper hbase-zookeeper
10
juju add-relation hbase-master hbase-zookeeper
11
juju add-relation hbase-regioncluster-01 hbase-zookeeper
12
juju deploy --config example-hadoop.yaml hadoop hdfs-namenode
13
juju deploy --config example-hadoop.yaml hadoop hdfs-datacluster-01
14
juju add-relation hdfs-namenode:namenode hdfs-datacluster-01:datanode
15
juju add-relation hdfs-namenode:namenode hbase-master:namenode
16
juju add-relation hdfs-namenode:namenode hbase-regioncluster-01:namenode
17
juju add-relation hbase-master:master hbase-regioncluster-01:regionserver
18
# XXX: Here, you need to manually create the schema from a hbase node. e.g.
20
exec hbase shell <<EOF
22
{NAME => 'id', COMPRESSION => 'NONE'},
23
{NAME => 'name', COMPRESSION => 'NONE'}
26
{NAME => 't', VERSIONS => 1, COMPRESSION => 'NONE', BLOOMFILTER => 'ROW'}
29
juju add-relation opentsdb hbase-zookeeper
32
Once that is done, you can use juju ssh to shell in and run more commands.
33
opentsdb is installed in /opt/opentsdb, and started and stopped via
34
start-stop-daemon by Juju itself. See the zookeeper-relation-changed hook for
37
You can put apache or haproxy in front of opentsdb - it exports the http interface.