Hbase客户端JAVA连接配置

Hbase官方已经给出了client示例代码,Getting Started文档里面有说明,就不重复了。
这里想告诉大家的只是远程连接的配置,简单得很,但是想从文档里面找到,还是得花点时间,所以直接告诉大家,希望有一点点帮助。
hbase-site.xml
<configuration>
<property>
<name>hbase.master</name>
<value>129.168.250.14:60000</value>
<description>
The host and port that the HBase master runs at. A value of
'local' runs the master and a regionserver in a single
process.
</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>129.168.250.14</value>
<description>
Comma separated list of servers in the ZooKeeper Quorum. For
example,
"host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
By default this is set to localhost for local and
pseudo-distributed modes of operation. For a
fully-distributed setup, this should be set to a full list
of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in
hbase-env.sh this is the list of servers which we will
start/stop ZooKeeper on.
</description>
</property>
</configuration>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值