Provide a list of HBase namespaces required by the application. They will be created (or destroyed) by HADeploy, except if managed flag is set to no.
Each item of the list has the following attributes:
|name||yes||The name of the HBase namespace.|
|no_remove||no||Boolean: Prevent this namespace to be removed when HADeploy will be used in REMOVE mode.
|managed||no||If no, this namespace is not handled by HADeploy. It will not be created nor deleted. But HADeploy can create and delete tables in this namespace.
|ranger_policy||no||Definition of Apache Ranger policy bound to this namespace. Parameters are same as hbase_ranger_policy except than
The policy name can be explicitly defined. Otherwise, a name will be generated as "
See example below for more information
|when||no||Boolean. Allow conditional deployment of this item.
hbase_namespaces: - name: broadns
If you want to use the 'default' namespace for some of your table, you may declare it.
hbase_namespaces: - name: broadns - name: default no_remove: True managed: no
In this case, you need to set no_remove: True, as the default namespace can't of course be removed. Otherwise, an error will be generated. And, of course managed: False.
Note this is optional, as HADeploy internally create such definition in this case (Only for the default namespace)
An example with a bound Apache Ranger policy:
hbase_namespaces: - name: broadns ranger_policy: permissions: - groups: - users accesses: - read - groups: - hbadmin accesses: - read - write - create - admin