-
Notifications
You must be signed in to change notification settings - Fork 14
/
HBaseShell.md
47 lines (41 loc) · 953 Bytes
/
HBaseShell.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# HBase Shell
## General Commands
- `status`
- `version`
- `table_help`
- `whoami`
## Data Definition Language
- `create`
- `list` - Lists all the tables in HBase.
- `disable`
- `is_disabled`
- `enable`
- `is_enabled`
- `describe`
- `alter`
- `exists`
- `drop`
- `drop_all`
- Java Admin API
## Data Manipulation Language
- `put`
- `get`
- `delete`
- `deleteall`
- `scan` - Scans and returns the table data.
- `count`
- `truncate`
- Java client API
## Starting HBase Shell
`./bin/hbase shell`
## Results
```
@shell.hbase.configuration.get("hbase.zookeeper.quorum")
@shell.hbase.configuration.get("hbase.zookeeper.property.clientPort")
@shell.hbase.configuration.get("hbase.master.info.port")
@shell.hbase.configuration.get("hbase.master.port")
@shell.hbase.configuration.get("hbase.rootdir")
@shell.hbase.configuration.get("hbase.zookeeper.property.dataDir")
```
## References
- [HBase - Shell](https://www.tutorialspoint.com/hbase/hbase_shell.htm)