- hbase为单机版且与应用在同一台机器上,不用配置任何参数
- hbase为集群,最小连接代码如下
Configuration config = HBaseConfiguration.create();
config.set("hbase.zookeeper.quorum", "localhost"); // Until 2.x.y versions
// ---- or ----
config.set("hbase.masters", "localhost:1234"); // Starting 3.0.0 version
来源:oschina
链接:https://my.oschina.net/u/2499008/blog/3217563