在hbase外壳中创建表:未初始化常量
简单的问题,我想创建如下表,你们能告诉我为什么这个命令不起作用吗在hbase外壳中创建表:未初始化常量,hbase,Hbase,简单的问题,我想创建如下表,你们能告诉我为什么这个命令不起作用吗 hbase(main):004:0> create 'test', {NAME => 'test', INDEX => 'test'} NameError: uninitialized constant INDEX 通过索引=>“测试”,您试图实现什么?据我所知,财产不存在: 只要做一个创建“test”、“test”或创建“test”{NAME=>“test”}这是什么意思?即使我显式地声明'create t
hbase(main):004:0> create 'test', {NAME => 'test', INDEX => 'test'}
NameError: uninitialized constant INDEX
通过
索引=>“测试”
,您试图实现什么?据我所知,财产不存在:
只要做一个
创建“test”、“test”或创建“test”{NAME=>“test”}
这是什么意思?即使我显式地声明'create table'yhbase(main):005:0>创建表'test',{NAME=>'test',INDEX=>'test'}NAME错误:未初始化的常量索引hbase(main):006:0>
create Create table; pass table name, a dictionary of specifications per
column family, and optionally a dictionary of table configuration.
Dictionaries are described below in the GENERAL NOTES section.
Examples:
hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
hbase> # The above in shorthand would be the following:
hbase> create 't1', 'f1', 'f2', 'f3'
hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, \
BLOCKCACHE => true}