- Created .env.example files for Kafka, Kibana, KodBox, Kong, Langfuse, Logstash, n8n, Nginx, OceanBase, OpenCoze, RocketMQ, TiDB, and TiKV. - Added README.md and README.zh.md files for OceanBase, RocketMQ, TiDB, and TiKV, detailing usage, configuration, and access instructions. - Implemented docker-compose.yaml files for OceanBase, RocketMQ, TiDB, and TiKV, defining service configurations, health checks, and resource limits. - Included broker.conf for RocketMQ to specify broker settings. - Established a consistent timezone (UTC) across all services. - Provided optional port overrides in .env.example files for flexibility in deployment.
1.4 KiB
1.4 KiB
HBase
HBase 是一个构建在 Hadoop 之上的分布式、可扩展的大数据存储系统,提供对大数据的随机、实时读写访问。
使用方法
docker compose up -d
配置说明
此配置运行 HBase 独立模式,内置 ZooKeeper。
端口说明
16000:HBase Master 端口16010:HBase Master Web UI16020:HBase RegionServer 端口16030:HBase RegionServer Web UI2181:ZooKeeper 客户端端口
访问方式
HBase Shell
访问 HBase shell:
docker compose exec hbase hbase shell
Web UI
- HBase Master UI:http://localhost:16010
- HBase RegionServer UI:http://localhost:16030
示例命令
# 列出所有表
echo "list" | docker compose exec -T hbase hbase shell -n
# 创建表
echo "create 'test', 'cf'" | docker compose exec -T hbase hbase shell -n
# 插入数据
echo "put 'test', 'row1', 'cf:a', 'value1'" | docker compose exec -T hbase hbase shell -n
# 扫描表
echo "scan 'test'" | docker compose exec -T hbase hbase shell -n
注意事项
- 这是一个独立模式配置,适合开发和测试
- 生产环境建议使用分布式 HBase 集群,配合外部 ZooKeeper 和 HDFS
- 数据持久化在命名卷中