Created on 06-20-2017 11:47 AM - edited 09-16-2022 04:47 AM
how to create a table in hbase in cloudera vm, whenever i submit its shows error
and is clouder quickstart is standalone mode or pseudo mode ?
or how to start hbase in cloudera vm ?
'customer','address','order
Create a table with namespace=ns1 and table qualifier=t1
hbase> create 'ns1:t1', {NAME => 'f1', VERSIONS => 5}
Create a table with namespace=default and table qualifier=t1
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}
hbase> create 't1', {NAME => 'f1', CONFIGURATION => {'hbase.hstore.blockingStoreFiles' => '10'}}
Table configuration options can be put at the end.
Examples:
hbase> create 'ns1:t1', 'f1', SPLITS => ['10', '20', '30', '40']
hbase> create 't1', 'f1', SPLITS => ['10', '20', '30', '40']
hbase> create 't1', 'f1', SPLITS_FILE => 'splits.txt', OWNER => 'johndoe'
hbase> create 't1', {NAME => 'f1', VERSIONS => 5}, METADATA => { 'mykey' => 'myvalue' }
hbase> # Optionally pre-split the table into NUMREGIONS, using
hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}
hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit', REGION_REPLICATION => 2, CONFIGURATION => {'hbase.hregion.scan.loadColumnFamiliesOnDemand' => 'true'}}
hbase> create 't1', {NAME => 'f1', DFS_REPLICATION => 1}
You can also keep around a reference to the created table:
hbase> t1 = create 't1', 'f1'
Created on 06-20-2017 12:08 PM - edited 06-20-2017 12:44 PM
there is some solution here, but even after restarting the machine, still same error https://community.cloudera.com/t5/Storage-Random-Access-HDFS/HBase-Can-t-get-master-address-from-Zoo...
i tried to give namespace but i am receiving an error?
Created on 06-22-2017 02:25 AM - edited 06-22-2017 02:27 AM
service hbase-master status service hbase-regionserver status
After restarting the Service , did you check the status . Please let me know
whats the status ?
if you are using Cloudera Manager Just see the status of the HBASE
Created 06-22-2017 05:47 AM
than ks got it