# HBase 表操作:
create:創建表
describe:查看表結構
enable:激活表
disable:屏蔽表
is_enabled:表是否被激活
drop:刪除表,首先必須禁用表
# HBase 表數據操作:
scan:查看表數據,全表掃描
count:統計記錄數(rows)
put:插入數據
get:獲取某一行/列的數據
delete:刪除某一列的數據
truncate:表截斷,相當于下面一系列操作:
- Disabling table...
- Dropping table...
- Creating table...
create:創建表
describe:查看表結構
enable:激活表
disable:屏蔽表
is_enabled:表是否被激活
drop:刪除表,首先必須禁用表
# HBase 表數據操作:
scan:查看表數據,全表掃描
count:統計記錄數(rows)
put:插入數據
get:獲取某一行/列的數據
delete:刪除某一列的數據
truncate:表截斷,相當于下面一系列操作:
- Disabling table...
- Dropping table...
- Creating table...
2018-06-18
進入 HBase Shell 模式:`hbase shell`
create:創建表
drop:刪除表
describe:表結構
enable:激活表
disable:屏蔽表
is_enabled:表是否被激活
list:查看所有表
HBase shell 模式下的退格鍵為 Ctrl + Backspace
create:創建表
drop:刪除表
describe:表結構
enable:激活表
disable:屏蔽表
is_enabled:表是否被激活
list:查看所有表
HBase shell 模式下的退格鍵為 Ctrl + Backspace
2018-06-18
hbase
hbase-daemon.sh
hbase-daemons.sh
start-hbase.sh
stop-hbase.sh
.cmd 結尾的屬于 Windows 執行文件,在 Linux 下可以直接刪掉 rm -rf *.cmd
hbase-daemon.sh
hbase-daemons.sh
start-hbase.sh
stop-hbase.sh
.cmd 結尾的屬于 Windows 執行文件,在 Linux 下可以直接刪掉 rm -rf *.cmd
2018-06-18
配置 $HBASE_HOME/conf/hbase-site.xml
配置 $HBASE_HOME/conf/regionservers
配置 $HBASE_HOME/conf/regionservers
2018-06-18
配置 `$HBASE_HOME/conf/hbase-env.sh`:
```
# 修改第27行的 JAVA_HOME 和129行的 HBASE_MANAGES_ZK
export JAVA_HOME=/bigdata/jdk1.8.0_171
export HBASE_MANAGES_ZK=false
```
```
# 修改第27行的 JAVA_HOME 和129行的 HBASE_MANAGES_ZK
export JAVA_HOME=/bigdata/jdk1.8.0_171
export HBASE_MANAGES_ZK=false
```
2018-06-18
Apache ZooKeeper 分布式協調服務
ZooKeeper 官網:http://zookeeper.apache.org
ZooKeeper入門指南:http://zookeeper.apache.org/doc/r3.4.5/zookeeperStarted.html
ZooKeeper 官網:http://zookeeper.apache.org
ZooKeeper入門指南:http://zookeeper.apache.org/doc/r3.4.5/zookeeperStarted.html
2018-06-18