Files
compose-anything/src/hbase/README.zh.md
Sun-ZhenXing ece59b42bf Add environment configuration and documentation for various services
- 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.
2025-10-22 11:46:50 +08:00

1.4 KiB
Raw Blame History

HBase

HBase 是一个构建在 Hadoop 之上的分布式、可扩展的大数据存储系统,提供对大数据的随机、实时读写访问。

使用方法

docker compose up -d

配置说明

此配置运行 HBase 独立模式,内置 ZooKeeper。

端口说明

  • 16000HBase Master 端口
  • 16010HBase Master Web UI
  • 16020HBase RegionServer 端口
  • 16030HBase RegionServer Web UI
  • 2181ZooKeeper 客户端端口

访问方式

HBase Shell

访问 HBase shell

docker compose exec hbase hbase shell

Web UI

示例命令

# 列出所有表
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
  • 数据持久化在命名卷中

参考资料