# e.g. for full-distributed
default['hbase']['this.cluster.name'] = 'pleiades'
default['hbase']['this.domain'] = 'grid.example.com'
-default['hbase']['this.realm'] = 'GRID.EXAMPLE.COM'
default['hbase']['this.namenode.fqdn'] = '${this.cluster.name}-nn.${this.domain}'
+default['hbase']['hbase.zookeeper.quorum'] = 'zk00.grid.example.com,zk01.grid.example.com,zk02.grid.example.com'
## if with_security
+default['hbase']['this.realm'] = 'GRID.EXAMPLE.COM'
default['hbase']['hbase.master.kerberos.principal'] = 'hbase/_HOST@${this.realm}'
### for secure zookeeper access
default['hbase']['jaas_master_kerberos_principal'] = "hbase/${this.fqdn}@#{node['hbase']['this.realm']}"
'this.realm' => realm,
'this.keytab.dir' => "#{grid_etc_root}/keytabs/#{cluster_name}",
'this.namenode.fqdn' => '${this.cluster.name}-nn.${this.domain}',
+ 'hbase.zookeeper.quorum' \
+ => 'zk00.grid.example.com,zk01.grid.example.com,zk02.grid.example.com',
'hbase.master.kerberos.principal' => 'hbase/_HOST@${this.realm}',
'jaas_master_kerberos_principal' => "hbase/${this.fqdn}@#{realm}",
'jaas_regionserver_kerberos_principal' => "hbase/${this.fqdn}@#{realm}"
--- /dev/null
+name 'hbase-pleiades'
+description 'Pleiades HBase cluster node'
+
+run_list(
+ # LDAP (option)
+ #'role[nameservice-client-grid]',
+ 'role[hbase]'
+)
+
+#env_run_lists "prod" => ["recipe[apache2]"], "staging" => ["recipe[apache2::staging]"], "_default" => []
+
+hbase_attributes = {
+ # hbase-site.xml
+ 'this.cluster.name' => 'pleiades',
+ 'this.domain' => 'grid.example.com',
+ 'this.namenode.fqdn' => '${this.cluster.name}-nn.${this.domain}',
+ 'hbase.zookeeper.quorum' \
+ => 'zk00.grid.example.com,zk01.grid.example.com,zk02.grid.example.com'
+}
+
+default_attributes(
+ 'hbase' => hbase_attributes
+)
+
+#override_attributes "apache2" => { "max_children" => "50" }