move_namespaces_rsgroup

Определение

Назначает указанные пространства имен в определенную группу Region Server.

Использование

move_namespaces_rsgroup '<rsgroup_name>', <namespaces_array[]>
Аргументы
Параметр Описание

rsgroup_name

Имя группы Region Server

namespaces_array

Массив строк, указанных в формате '<namespace_name>', где <namespace_name> — имя пространства имен

Примеры

hbase(main):022:0> create 'ns1:temp2', 'cf1'
Created table ns1:temp2
Took 1.0197 seconds
=> Hbase::Table - ns1:temp2
hbase(main):023:0> list_namespace_tables 'ns1'
TABLE
temp2
1 row(s)
Took 0.0096 seconds
=> ["temp2"]
hbase(main):024:0> list_rsgroups
NAME                     SERVER / TABLE
 test_group              server bds-adh-2.ru-central1.internal:16020
                         server bds-adh-3.ru-central1.internal:16020
                         table t4
                         table temp1
 default                 server bds-adh-1.ru-central1.internal:16020
                         table hbase:meta
                         table hbase:acl
                         table SYSTEM.CATALOG
                         table ns1:temp2
                         table t5
                         table t6
                         table hbase:labels
                         table hbase:namespace
                         table SYSTEM.SEQUENCE
                         table SYSTEM.LOG
                         table SYSTEM.FUNCTION
                         table SYSTEM.MUTEX
                         table SYSTEM.STATS
                         table hbase:rsgroup
2 row(s)
Took 0.0117 seconds
hbase(main):025:0> move_namespaces_rsgroup 'test_group', ['ns1']
Took 1.1491 seconds
hbase(main):026:0> list_rsgroups
NAME                     SERVER / TABLE
 test_group              server bds-adh-2.ru-central1.internal:16020
                         server bds-adh-3.ru-central1.internal:16020
                         table ns1:temp2
                         table t4
                         table temp1
 default                 server bds-adh-1.ru-central1.internal:16020
                         table hbase:meta
                         table hbase:acl
                         table SYSTEM.CATALOG
                         table t5
                         table t6
                         table hbase:labels
                         table hbase:namespace
                         table SYSTEM.SEQUENCE
                         table SYSTEM.LOG
                         table SYSTEM.FUNCTION
                         table SYSTEM.MUTEX
                         table SYSTEM.STATS
                         table hbase:rsgroup
2 row(s)
Took 0.0055 seconds
Нашли ошибку? Выделите текст и нажмите Ctrl+Enter чтобы сообщить о ней