Created 10-07-2016 04:13 AM
Need steps for creation of the Namespace.
Created 10-07-2016 04:16 AM
@Rammohan Reddy This is documented here
http://hbase.apache.org/book.html#_namespace
Just go to hbase shell and execute command.
A namespace can be created, removed or altered. Namespace membership is determined during table creation by specifying a fully-qualified table name of the form:
<code><table namespace>:<table qualifier>
Example 12. Examples
<code>#Create a namespace create_namespace 'my_ns'
<code>#create my_table in my_ns namespace create 'my_ns:my_table', 'fam'
<code>#drop namespace drop_namespace 'my_ns'
<code>#alter namespace alter_namespace 'my_ns', {METHOD => 'set', 'PROPERTY_NAME' => 'PROPERTY_VALUE'}
Created 10-07-2016 04:16 AM
@Rammohan Reddy This is documented here
http://hbase.apache.org/book.html#_namespace
Just go to hbase shell and execute command.
A namespace can be created, removed or altered. Namespace membership is determined during table creation by specifying a fully-qualified table name of the form:
<code><table namespace>:<table qualifier>
Example 12. Examples
<code>#Create a namespace create_namespace 'my_ns'
<code>#create my_table in my_ns namespace create 'my_ns:my_table', 'fam'
<code>#drop namespace drop_namespace 'my_ns'
<code>#alter namespace alter_namespace 'my_ns', {METHOD => 'set', 'PROPERTY_NAME' => 'PROPERTY_VALUE'}
Created 10-07-2016 05:49 AM
Thanks Sunile for the information.
Created 10-07-2016 05:49 AM
Thanks for the information Sunile
Created 03-05-2017 12:50 AM
As a quick follow-up to @Sunile Manjee's perfect answer, check out https://martin.atlassian.net/wiki/x/0zToBQ for how to grant DBA-level privileges to these new namespaces. Heck, here it is in from the shell's perspective.
grant 'the_username', 'RWXC', '@my_ns'
Created 04-26-2017 02:23 PM
Hi,
although @Lester Martin and @Sunile Manjee answered perfectly, just a minor addition. If you want to assign privileges to a _group_ instead of single user, then also use '@'-prefix, like e.g.:
grant '@admingroup', 'RWXC', '@my_ns'
Created 07-06-2018 01:39 PM
Will it be possible to create namespace on the custom hdfs path ?