Skip to content

Commit a932140

Browse files
authored
Update README.md
1 parent defa3b3 commit a932140

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ create a txt file with the content below, put it under /data/ directory, such as
8787
load local file data into the external hive table, which we created above.
8888

8989
```
90-
load data local inpath /tools/example.txt overwrite into table test;
90+
load data local inpath '/tools/example.txt' overwrite into table test;
9191

9292
```
9393
</pre>
@@ -104,6 +104,54 @@ select * from test;
104104
```
105105
</pre>
106106

107+
## Testing HBase
108+
109+
<pre>
110+
create a table named as person, with two column families, info and tags.
111+
112+
```
113+
create 'person', 'info','tags'
114+
```
115+
116+
list tables in HBase
117+
```
118+
list
119+
```
120+
describe table person
121+
122+
```
123+
describe 'person'
124+
```
125+
126+
Insert some data into table person with rowkey 1.
127+
128+
```
129+
put 'person','1','info:name','spancer'
130+
put 'person','1','info:age','36'
131+
put 'person', '1', 'tags:skill','bigdata'
132+
```
133+
134+
scan table person
135+
```
136+
scan 'person'
137+
```
138+
139+
get data by rowkey
140+
```
141+
get 'person','1'
142+
143+
```
144+
get data by rowkey and column family or column.
145+
146+
```
147+
get 'person','1'
148+
149+
get 'person','1','info'
150+
151+
get 'person','1','info:name'
152+
153+
</pre>
154+
107155

108156
## How to test prestodb to confirm whether it works?
109157
```

0 commit comments

Comments
 (0)