Skip to content

Commit a894774

Browse files
[PUBLISHER] Merge #153
* PUSH NOTE : 傲来大数据方向HBase组优化日报-Day4&5.md * PUSH ATTACHMENT : 74b0ad75fb48069679b4859e002af66e.png
1 parent 532de59 commit a894774

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: 傲来大数据方向HBase组优化日报-Day4&5
3+
date: 2025-05-12 10:06:42 +08:00
4+
filename: 2025-05-12-EulixOS-HBase-Day4&5
5+
categories:
6+
- Study
7+
- HBase
8+
tags:
9+
- BigData
10+
- DataBase
11+
- EulixOS
12+
dir: Study/HBase
13+
share: true
14+
---
15+
build了一天,结果还是失败了,问题出在网络上,所以直接把Maven仓库设置阿里云镜像。
16+
17+
经过了30个小时的漫长编译,HBase终于编译成功
18+
19+
![74b0ad75fb48069679b4859e002af66e.png](../../../assets/images/74b0ad75fb48069679b4859e002af66e.png)
20+
21+
### Jruby问题
22+
23+
部署之后,无法通过/bin/hbase shell连接到hbase shell,所以通过REST API访问HBase
24+
25+
```shell
26+
# 启动REST服务器
27+
./bin/hbase rest start -p 8080
28+
29+
# 使用curl获取表信息
30+
curl -H "Accept: application/json" http://localhost:8080/
31+
32+
# 创建名为"users"的表,有一个列族"info"
33+
curl -H "Content-Type: application/json" -X PUT \
34+
-d '{"ColumnSchema":[{"name":"info"}]}' \
35+
http://localhost:8080/users/schema
36+
37+
curl -H "Accept: application/json" http://localhost:8080/users/schema
38+
```
39+
40+
可知HBase正确启动。
41+
42+
```shell
43+
[root@localhost ~]# curl -H "Content-Type: application/json" -X PUT \
44+
-d '{"ColumnSchema":[{"name":"info"}]}' \
45+
http://localhost:8080/users/schema
46+
47+
[root@localhost ~]# curl -H "Accept: application/json" http://localhost:8080/users/schema
48+
{"name":"users","ColumnSchema":[{"name":"info","INDEX_BLOCK_ENCODING":"NONE","VERSIONS":"1","KEEP_DELETED_CELLS":"FALSE","DATA_BLOCK_ENCODING":"NONE","TTL":"2147483647","MIN_VERSIONS":"0","REPLICATION_SCOPE":"0","BLOOMFILTER":"ROW","IN_MEMORY":"false","COMPRESSION":"NONE","BLOCKCACHE":"true","BLOCKSIZE":"65536"}],"IS_META":"false"}
49+
```
394 KB
Loading

0 commit comments

Comments
 (0)