[root@master ~]# jps
53559 ResourceManager
53181 NameNode
105100 Jps
53390 SecondaryNameNode
105070 QuorumPeerMain
[root@master ~]# hdfs dfsadmin -safemode leave
Safe mode is OFF
[root@master ~]# cd /usr/local/soft/packages/
[root@master packages]# ls
apache-hive-1.2.1-bin.tar.gz redis-6.2.6.tar.gz
hadoop-2.7.6.tar.gz zookeeper-3.4.6.tar.gz
[root@master packages]# rz -E
rz waiting to receive.
[root@master packages]# ls
apache-hive-1.2.1-bin.tar.gz redis-6.2.6.tar.gz
hadoop-2.7.6.tar.gz zookeeper-3.4.6.tar.gz
hbase-1.4.6-bin.tar.gz
[root@master packages]# tar -zxvf hbase-1.4.6-bin.tar.gz -C /usr/local/soft
[root@master packages]# cd ..
[root@master soft]# ls
0?? hive-1.2.1 redis-6.2.6 test.txt
A?? jars scripts zookeeper-3.4.6
data jdk1.8.0_171 shell
hadoop-2.7.6 packages shell01
hbase-1.4.6 redis show
[root@master soft]# cd hbase-1.4.6/
[root@master hbase-1.4.6]# pwd
/usr/local/soft/hbase-1.4.6
[root@master hbase-1.4.6]# vim /etc/profile
[root@master hbase-1.4.6]# source /etc/profile
[root@master hbase-1.4.6]# hbase
hbase hbase-config.sh hbase-jruby
hbase-cleanup.sh hbase-daemon.sh
hbase-common.sh hbase-daemons.sh
[root@master hbase-1.4.6]# cd bin/
[root@master bin]# ls
draining_servers.rb master-backup.sh
get-active-master.rb region_mover.rb
graceful_stop.sh regionservers.sh
hbase region_status.rb
hbase-cleanup.sh replication
hbase.cmd rolling-restart.sh
hbase-common.sh shutdown_regionserver.rb
hbase-config.cmd start-hbase.cmd
hbase-config.sh start-hbase.sh
hbase-daemon.sh stop-hbase.cmd
hbase-daemons.sh stop-hbase.sh
hbase-jruby test
hirb.rb thread-pool.rb
local-master-backup.sh zookeepers.sh
local-regionservers.sh
[root@master bin]# pwd
/usr/local/soft/hbase-1.4.6/bin
[root@master bin]# cd ..
[root@master hbase-1.4.6]# ls
bin conf hbase-webapps lib NOTICE.txt
CHANGES.txt docs LEGAL LICENSE.txt README.txt
修改hbase-env.sh文件
增加java配置
export JAVA_HOME=/usr/local/soft/jdk1.8.0_171关闭默认zk配置
export HBASE_MANAGES_ZK=false修改hbase-site.xml文件
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>node1,node2,master</value>
</property>
修改regionservers文件
增加
node1
node2
[root@master conf]# vim hbase-env.sh
[root@master conf]# vim hbase-env.sh
[root@master conf]# vim regionservers
[root@master conf]# vim hbase-site.xml
[root@master conf]# cd ..
[root@master hbase-1.4.6]# cd ..
[root@master soft]# ls
0?? hive-1.2.1 redis-6.2.6 test.txt
A?? jars scripts zookeeper-3.4.6
data jdk1.8.0_171 shell
hadoop-2.7.6 packages shell01
hbase-1.4.6 redis show
[root@master soft]# scp -r hbase-1.4.6/ node1:`pwd`
[root@master soft]# scp -r hbase-1.4.6/ node2:`pwd`
[root@master soft]# cd hbase-1.4.6/
[root@master hbase-1.4.6]# ls
bin conf hbase-webapps lib NOTICE.txt
CHANGES.txt docs LEGAL LICENSE.txt README.txt
[root@master hbase-1.4.6]# start-hbase.sh
running master, logging to /usr/local/soft/hbase-1.4.6/bin/../logs/hbase-root-master-master.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
node2: running regionserver, logging to /usr/local/soft/hbase-1.4.6/bin/../logs/hbase-root-regionserver-node2.out
node1: running regionserver, logging to /usr/local/soft/hbase-1.4.6/bin/../logs/hbase-root-regionserver-node1.out
node2: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
node2: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
node1: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
node1: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
[root@master hbase-1.4.6]# jps
106066 Jps
53559 ResourceManager
105798 HMaster
53181 NameNode
53390 SecondaryNameNode
105070 QuorumPeerMain
master:16010
[root@master hbase-1.4.6]# ls
bin docs lib NOTICE.txt
CHANGES.txt hbase-webapps LICENSE.txt README.txt
conf LEGAL logs
[root@master hbase-1.4.6]# cd logs/
[root@master logs]# ls
hbase-root-master-master.log SecurityAuth.audit
hbase-root-master-master.out
[root@master logs]# hbase shell
hbase(main):002:0> create 'tb1','cf1'
0 row(s) in 2.4550 seconds
=> Hbase::Table - tb1
hbase(main):003:0> list
TABLE
tb1
1 row(s) in 0.0160 seconds
=> ["tb1"]
hbase(main):004:0> disable 'tb1'
0 row(s) in 2.2600 seconds
hbase(main):005:0> enable 'tb1'
0 row(s) in 1.2600 seconds
hbase(main):006:0> create
create create_namespace
hbase(main):007:0> create_namespace 'ns1'
0 row(s) in 0.8860 seconds
hbase(main):008:0> list
list list_deadservers
list_labels list_namespace
list_namespace_tables list_peer_configs
list_peers list_procedures
list_quotas list_regions
list_replicated_tables list_rsgroups
list_security_capabilities list_snapshots
list_table_snapshots
hbase(main):008:0> list_namespace
list_namespace list_namespace_tables
hbase(main):008:0> list_namespace
NAMESPACE
default
hbase
ns1
3 row(s) in 0.0240 seconds
hbase(main):009:0> create 'tb2','cf1'
0 row(s) in 2.2460 seconds
=> Hbase::Table - tb2
hbase(main):010:0> create 'ns1:tb3','cf1'
0 row(s) in 2.2450 seconds
=> Hbase::Table - ns1:tb3
hbase(main):011:0> list_namespace
list_namespace list_namespace_tables
hbase(main):011:0> list_namespace_tables
ERROR: wrong number of arguments (0 for 1)
Here is some help for this command:
List all tables that are members of the namespace.
Examples:
hbase> list_namespace_tables 'ns1'
hbase(main):012:0> list_namespace_tables 'hbase'
TABLE
meta
namespace
2 row(s) in 0.0180 seconds
hbase(main):013:0> scan 'hbase:namespace'
ROW COLUMN+CELL
default column=info:d, timestamp=1649680373766, value=
\x0A\x07default
hbase column=info:d, timestamp=1649680374516, value=
\x0A\x05hbase
ns1 column=info:d, timestamp=1649681351353, value=
\x0A\x03ns1
3 row(s) in 0.0440 seconds
hbase(main):015:0> create 'tb4','cf1'
0 row(s) in 2.2420 seconds
=> Hbase::Table - tb4
hbase(main):016:0> list
TABLE
ns1:tb3
tb1
tb2
tb4
4 row(s) in 0.0120 seconds
=> ["ns1:tb3", "tb1", "tb2", "tb4"]
hbase(main):018:0> put 'tb1','001','cf1:name','zs'
0 row(s) in 0.0130 seconds
hbase(main):019:0> put 'tb1','001','cf1:age','20'
0 row(s) in 0.0070 seconds
hbase(main):020:0> put 'tb1','001','cf1:clazz','clazz1'
0 row(s) in 0.0050 seconds
hbase(main):022:0> put 'tb1','002','cf1:name','ls'
0 row(s) in 0.0090 seconds
hbase(main):023:0> put 'tb1','002','cf1:age','22'
0 row(s) in 0.0050 seconds
hbase(main):024:0> put 'tb1','003','cf1:name','ww'
0 row(s) in 0.0060 seconds
hbase(main):025:0> get 'tb1','001','cf1:name'
COLUMN CELL
cf1:name timestamp=1649682368670, value=zs
1 row(s) in 0.0200 seconds
hbase(main):026:0> get 'tb1','001'
COLUMN CELL
cf1:age timestamp=1649682385387, value=20
cf1:clazz timestamp=1649682468540, value=clazz1
cf1:name timestamp=1649682368670, value=zs
1 row(s) in 0.0090 seconds
hbase(main):027:0> scan 'tb1'
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
003 column=cf1:name, timestamp=1649682608071, valu
e=ww
3 row(s) in 0.0180 seconds
hbase(main):028:0> scan 'tb1',{LIMIT=>2}
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
2 row(s) in 0.0140 seconds
hbase(main):030:0> put 'tb1','004','cf1:id','004'
0 row(s) in 0.0070 seconds
hbase(main):031:0> put 'tb1','00111','cf1:id','00111'
0 row(s) in 0.0050 seconds
hbase(main):033:0> scan 'tb1',{LIMIT=>10}
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
00111 column=cf1:id, timestamp=1649682956003, value=
00111
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
003 column=cf1:name, timestamp=1649682608071, valu
e=ww
004 column=cf1:id, timestamp=1649682938380, value=
004
5 row(s) in 0.0140 seconds
hbase(main):034:0> create 'tb1_v',{NAME=>'cf1',VERSIONS=>3}
0 row(s) in 2.2510 seconds
hbase(main):001:0> put 'tb1_v','001','cf1:name','zs'
0 row(s) in 0.1760 seconds
hbase(main):002:0> put 'tb1_v','001','cf1:name','zs1'
0 row(s) in 0.0190 seconds
hbase(main):003:0> put 'tb1_v','001','cf1:name','zs2'
0 row(s) in 0.0070 seconds
hbase(main):004:0> put 'tb1_v','001','cf1:name','zs3'
0 row(s) in 0.0050 seconds
hbase(main):005:0> get 'tb1_v','001'
COLUMN CELL
cf1:name timestamp=1649683511966, value=zs3
1 row(s) in 0.0200 seconds
hbase(main):011:0> get 'tb1_v','001',{COLUMN=>'cf1',VERSIONS=>5}
COLUMN CELL
cf1:name timestamp=1649683511966, value=zs3
cf1:name timestamp=1649683505352, value=zs2
cf1:name timestamp=1649683499185, value=zs1
1 row(s) in 0.0090 seconds
hbase(main):012:0> delete 'tb1_v','001','cf1:name'
0 row(s) in 0.0250 seconds
hbase(main):013:0> get 'tb1_v','001',{COLUMN=>'cf1',VERSIONS=>5}
COLUMN CELL
cf1:name timestamp=1649683505352, value=zs2
cf1:name timestamp=1649683499185, value=zs1
cf1:name timestamp=1649683495129, value=zs
1 row(s) in 0.0110 seconds
hbase(main):014:0> put 'tb1_v','001','cf1:name','zs3'
0 row(s) in 0.0210 seconds
hbase(main):015:0> get 'tb1_v','001',{COLUMN=>'cf1',VERSIONS=>5}
COLUMN CELL
cf1:name timestamp=1649684443338, value=zs3
cf1:name timestamp=1649683505352, value=zs2
cf1:name timestamp=1649683499185, value=zs1
1 row(s) in 0.0060 seconds
hbase(main):016:0> deleteall 'tb1_v','001'
0 row(s) in 0.0080 seconds
hbase(main):017:0> scan 'tb1'
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
00111 column=cf1:id, timestamp=1649682956003, value=
00111
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
003 column=cf1:name, timestamp=1649682608071, valu
e=ww
004 column=cf1:id, timestamp=1649682938380, value=
004
5 row(s) in 0.0270 seconds
hbase(main):018:0> scan 'tb1',{LIMIT=>3}
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
00111 column=cf1:id, timestamp=1649682956003, value=
00111
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
3 row(s) in 0.0190 seconds
hbase(main):001:0> scan 'tb1',{STARTROW=>'001',ENDROW=>'002'}
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
00111 column=cf1:id, timestamp=1649682956003, value=
00111
2 row(s) in 0.1460 seconds
hbase(main):002:0> create 'tb1_tt1',{NAME=>'cf1',TTL=>10}
0 row(s) in 2.3100 seconds
hbase(main):008:0> put 'tb1_tt1','001','cf1:id','001'
0 row(s) in 0.0170 seconds
hbase(main):009:0> get 'tb1_tt1','001'
COLUMN CELL
cf1:id timestamp=1649685212383, value=001
1 row(s) in 0.0040 seconds
hbase(main):010:0> get 'tb1_tt1','001'
COLUMN CELL
cf1:id timestamp=1649685212383, value=001
1 row(s) in 0.0100 seconds
hbase(main):011:0> get 'tb1_tt1','001'
COLUMN CELL
0 row(s) in 0.0050 seconds
hbase(main):012:0> desc 'tb1_tt1'
Table tb1_tt1 is ENABLED
tb1_tt1
COLUMN FAMILIES DESCRIPTION
{NAME => 'cf1', BLOOMFILTER => 'ROW', VERSIONS => '1', IN_MEMORY
=> 'false', KEEP_DELETED_CELLS => 'FALSE', DATA_BLOCK_ENCODING
=> 'NONE', TTL => '10 SECONDS', COMPRESSION => 'NONE', MIN_VERSI
ONS => '0', BLOCKCACHE => 'true', BLOCKSIZE => '65536', REPLICAT
ION_SCOPE => '0'}
1 row(s) in 0.0230 seconds
hbase(main):001:0> scan 'tb1'
ROW COLUMN+CELL
001 column=cf1:age, timestamp=1649682385387, value
=20
001 column=cf1:clazz, timestamp=1649682468540, val
ue=clazz1
001 column=cf1:name, timestamp=1649682368670, valu
e=zs
00111 column=cf1:id, timestamp=1649682956003, value=
00111
002 column=cf1:age, timestamp=1649682584802, value
=22
002 column=cf1:name, timestamp=1649682521918, valu
e=ls
003 column=cf1:name, timestamp=1649682608071, valu
e=ww
004 column=cf1:id, timestamp=1649682938380, value=
004
5 row(s) in 0.2190 seconds
hbase(main):002:0> split 'tb1','002'
hbase(main):002:0> split 'tb1','003'
hbase(main):001:0> scan 'hbase:meta'
ROW COLUMN+CELL
hbase:namespace, column=info:regioninfo, timestamp=164972635581
,1649680372512.f 7, value={ENCODED => f4e509a296c40ce84b5492b6d
4e509a296c40ce84 0c72e70, NAME => 'hbase:namespace,,16496803725
b5492b6d0c72e70. 12.f4e509a296c40ce84b5492b6d0c72e70.', STARTKE
Y => '', ENDKEY => ''}
hbase:namespace, column=info:seqnumDuringOpen, timestamp=164972
,1649680372512.f 6355817, value=\x00\x00\x00\x00\x00\x00\x00\x0
4e509a296c40ce84 D
b5492b6d0c72e70.
hbase:namespace, column=info:server, timestamp=1649726355817, v
,1649680372512.f alue=node2:16020
4e509a296c40ce84
b5492b6d0c72e70.
hbase:namespace, column=info:serverstartcode, timestamp=1649726
,1649680372512.f 355817, value=1649726343030
4e509a296c40ce84
b5492b6d0c72e70.
ns1:tb3,,1649681 column=info:regioninfo, timestamp=164972635573
476230.34443ffbc 9, value={ENCODED => 34443ffbc4f9a27f47b312dc8
4f9a27f47b312dc8 f38cd2c, NAME => 'ns1:tb3,,1649681476230.34443
f38cd2c. ffbc4f9a27f47b312dc8f38cd2c.', STARTKEY => '',
ENDKEY => ''}
ns1:tb3,,1649681 column=info:seqnumDuringOpen, timestamp=164972
476230.34443ffbc 6355739, value=\x00\x00\x00\x00\x00\x00\x00\x0
4f9a27f47b312dc8 3
f38cd2c.
ns1:tb3,,1649681 column=info:server, timestamp=1649726355739, v
476230.34443ffbc alue=node2:16020
4f9a27f47b312dc8
f38cd2c.
ns1:tb3,,1649681 column=info:serverstartcode, timestamp=1649726
476230.34443ffbc 355739, value=1649726343030
4f9a27f47b312dc8
f38cd2c.
tb1,,16496854502 column=info:regioninfo, timestamp=164972635684
06.51287d0d0c050 0, value={ENCODED => 51287d0d0c05014f5d38c769c
14f5d38c769c29df 29df37c, NAME => 'tb1,,1649685450206.51287d0d0
37c. c05014f5d38c769c29df37c.', STARTKEY => '', END
KEY => '002'}
tb1,,16496854502 column=info:seqnumDuringOpen, timestamp=164972
06.51287d0d0c050 6356840, value=\x00\x00\x00\x00\x00\x00\x00\x1
14f5d38c769c29df 4
37c.
tb1,,16496854502 column=info:server, timestamp=1649726356840, v
06.51287d0d0c050 alue=node1:16020
14f5d38c769c29df
37c.
tb1,,16496854502 column=info:serverstartcode, timestamp=1649726
06.51287d0d0c050 356840, value=1649726343045
14f5d38c769c29df
37c.
tb1,002,16496855 column=info:regioninfo, timestamp=164972635683
66822.c61fe31d05 4, value={ENCODED => c61fe31d052291974b72f0db3
2291974b72f0db31 175694c, NAME => 'tb1,002,1649685566822.c61fe3
75694c. 1d052291974b72f0db3175694c.', STARTKEY => '002
', ENDKEY => '003'}
tb1,002,16496855 column=info:seqnumDuringOpen, timestamp=164972
66822.c61fe31d05 6356834, value=\x00\x00\x00\x00\x00\x00\x00\x1
2291974b72f0db31 5
75694c.
tb1,002,16496855 column=info:server, timestamp=1649726356834, v
66822.c61fe31d05 alue=node1:16020
2291974b72f0db31
75694c.
tb1,002,16496855 column=info:serverstartcode, timestamp=1649726
66822.c61fe31d05 356834, value=1649726343045
2291974b72f0db31
75694c.
tb1,003,16496855 column=info:regioninfo, timestamp=164972635710
66822.b68c6e5ced 6, value={ENCODED => b68c6e5ced14b374cf47f9f1b
14b374cf47f9f1b3 3bb93d5, NAME => 'tb1,003,1649685566822.b68c6e
bb93d5. 5ced14b374cf47f9f1b3bb93d5.', STARTKEY => '003
', ENDKEY => ''}
tb1,003,16496855 column=info:seqnumDuringOpen, timestamp=164972
66822.b68c6e5ced 6357106, value=\x00\x00\x00\x00\x00\x00\x00\x1
14b374cf47f9f1b3 6
bb93d5.
tb1,003,16496855 column=info:server, timestamp=1649726357106, v
66822.b68c6e5ced alue=node1:16020
14b374cf47f9f1b3
bb93d5.
tb1,003,16496855 column=info:serverstartcode, timestamp=1649726
66822.b68c6e5ced 357106, value=1649726343045
14b374cf47f9f1b3
bb93d5.
tb1_tt1,,1649685 column=info:regioninfo, timestamp=164972635607
087131.cb7c938a9 9, value={ENCODED => cb7c938a9d209753ecce22481
d209753ecce22481 3c1c641, NAME => 'tb1_tt1,,1649685087131.cb7c9
3c1c641. 38a9d209753ecce224813c1c641.', STARTKEY => '',
ENDKEY => ''}
tb1_tt1,,1649685 column=info:seqnumDuringOpen, timestamp=164972
087131.cb7c938a9 6356079, value=\x00\x00\x00\x00\x00\x00\x00\x0
d209753ecce22481 D
3c1c641.
tb1_tt1,,1649685 column=info:server, timestamp=1649726356079, v
087131.cb7c938a9 alue=node2:16020
d209753ecce22481
3c1c641.
tb1_tt1,,1649685 column=info:serverstartcode, timestamp=1649726
087131.cb7c938a9 356079, value=1649726343030
d209753ecce22481
3c1c641.
tb1_v,,164968322 column=info:regioninfo, timestamp=164972635699
4644.960f1048d2d 0, value={ENCODED => 960f1048d2de64842c8c8c41a
e64842c8c8c41a0b 0ba3b77, NAME => 'tb1_v,,1649683224644.960f104
a3b77. 8d2de64842c8c8c41a0ba3b77.', STARTKEY => '', E
NDKEY => ''}
tb1_v,,164968322 column=info:seqnumDuringOpen, timestamp=164972
4644.960f1048d2d 6356990, value=\x00\x00\x00\x00\x00\x00\x00\x0
e64842c8c8c41a0b B
a3b77.
tb1_v,,164968322 column=info:server, timestamp=1649726356990, v
4644.960f1048d2d alue=node1:16020
e64842c8c8c41a0b
a3b77.
tb1_v,,164968322 column=info:serverstartcode, timestamp=1649726
4644.960f1048d2d 356990, value=1649726343045
e64842c8c8c41a0b
a3b77.
tb2,,16496814193 column=info:regioninfo, timestamp=164972635707
01.279aea6a0c223 5, value={ENCODED => 279aea6a0c223c9730606f5a2
c9730606f5a2b2cc b2cc5f1, NAME => 'tb2,,1649681419301.279aea6a0
5f1. c223c9730606f5a2b2cc5f1.', STARTKEY => '', END
KEY => ''}
tb2,,16496814193 column=info:seqnumDuringOpen, timestamp=164972
01.279aea6a0c223 6357075, value=\x00\x00\x00\x00\x00\x00\x00\x0
c9730606f5a2b2cc 3
5f1.
tb2,,16496814193 column=info:server, timestamp=1649726357075, v
01.279aea6a0c223 alue=node1:16020
c9730606f5a2b2cc
5f1.
tb2,,16496814193 column=info:serverstartcode, timestamp=1649726
01.279aea6a0c223 357075, value=1649726343045
c9730606f5a2b2cc
5f1.
tb4,,16496820192 column=info:regioninfo, timestamp=164972635570
05.7ec4eb470a007 9, value={ENCODED => 7ec4eb470a0070dbcf2f3bdd0
0dbcf2f3bdd0f5ee f5ee5aa, NAME => 'tb4,,1649682019205.7ec4eb470
5aa. a0070dbcf2f3bdd0f5ee5aa.', STARTKEY => '', END
KEY => ''}
tb4,,16496820192 column=info:seqnumDuringOpen, timestamp=164972
05.7ec4eb470a007 6355709, value=\x00\x00\x00\x00\x00\x00\x00\x0
0dbcf2f3bdd0f5ee 3
5aa.
tb4,,16496820192 column=info:server, timestamp=1649726355709, v
05.7ec4eb470a007 alue=node2:16020
0dbcf2f3bdd0f5ee
5aa.
tb4,,16496820192 column=info:serverstartcode, timestamp=1649726
05.7ec4eb470a007 355709, value=1649726343030
0dbcf2f3bdd0f5ee
5aa.
9 row(s) in 0.1730 seconds
hbase(main):002:0> get 'hbase:meta','tb1,,1649685450206.51287d0d0c05014f5d38c769c29df37c.'
COLUMN CELL
info:regioninfo timestamp=1649726356840, value={ENCODED => 512
87d0d0c05014f5d38c769c29df37c, NAME => 'tb1,,1
649685450206.51287d0d0c05014f5d38c769c29df37c.
', STARTKEY => '', ENDKEY => '002'}
info:seqnumDurin timestamp=1649726356840, value=\x00\x00\x00\x0
gOpen 0\x00\x00\x00\x14
info:server timestamp=1649726356840, value=node1:16020
info:serverstart timestamp=1649726356840, value=1649726343045
code
1 row(s) in 0.0180 seconds
[root@node1 ~]# jps
40560 DataNode
92695 QuorumPeerMain
95352 Jps
95211 HRegionServer
40670 NodeManager
[root@node1 ~]# netstat -tnlp | grep 95211
tcp6 0 0 192.168.49.120:16020 :::* LISTEN 95211/java
tcp6 0 0 :::16030 :::* LISTEN 95211/java
hbase(main):003:0> alter 'tb1',NAME=>'cf2'
Updating all regions with the new schema...
3/3 regions updated.
Done.
0 row(s) in 2.4770 seconds
hbase(main):004:0> alter 'tb1','delete'=>'cf2'
Updating all regions with the new schema...
2/3 regions updated.
3/3 regions updated.
Done.
0 row(s) in 3.4030 seconds
hbase(main):005:0> count 'tb1'
5 row(s) in 0.0430 seconds
=> 5
hbase(main):006:0> count 'tb1',{CACHE=>10,INTERVAL=>1000}
5 row(s) in 0.0120 seconds
=> 5
hbase(main):007:0> truncate 'tb1'
Truncating 'tb1' table (it may take a while):
- Disabling table...
- Truncating table...
0 row(s) in 3.8970 seconds
hbase(main):008:0> drop 'tb1'
ERROR: Table tb1 is enabled. Disable it first.
Here is some help for this command:
Drop the named table. Table must first be disabled:
hbase> drop 't1'
hbase> drop 'ns1:t1'
hbase(main):009:0> disable 'tb1'
dr0 row(s) in 2.2380 seconds
hbase(main):010:0> drop 'tb1'
0 row(s) in 1.2490 seconds
hbase(main):011:0> exists 'tb1'
Table tb1 does not exist
0 row(s) in 0.0060 seconds