Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在hbase外壳中创建表:未初始化常量_Hbase - Fatal编程技术网

在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}