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>
展开阅读全文

没有更多推荐了,返回首页