~charmers/charms/precise/opentsdb/trunk

« back to all changes in this revision

Viewing changes to README

  • Committer: Robert Collins
  • Date: 2012-06-26 03:48:13 UTC
  • Revision ID: robertc@robertcollins.net-20120626034813-huidbycs7baegu0j
Workingish charm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This charm deploys http://opentsdb.net from its git repository, on top of a
 
2
juju provided hbase cluster.
 
3
 
 
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.
 
5
 
 
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.
 
19
  juju ssh hbase-master
 
20
  exec hbase shell <<EOF
 
21
    create 'tsdb-uid',
 
22
        {NAME => 'id', COMPRESSION => 'NONE'},
 
23
        {NAME => 'name', COMPRESSION => 'NONE'}
 
24
 
 
25
    create 'tsdb',
 
26
      {NAME => 't', VERSIONS => 1, COMPRESSION => 'NONE', BLOOMFILTER => 'ROW'}
 
27
  EOF
 
28
  juju deploy opentsdb
 
29
  juju add-relation opentsdb hbase-zookeeper
 
30
  juju expose opentsdb
 
31
 
 
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
 
35
more information.
 
36
 
 
37
You can put apache or haproxy in front of opentsdb - it exports the http interface.