|
waityou81 发表于 2014-3-4 17:10 ![]()
应该是配置HDFS HA后,没有把更新后的hadoop xml文件拷贝到hbase/conf下
还有一个问题,我目前起了两个hmaster,一个active,一个standby,那么客户端端如何联hbase:
以前我看有人是这样写的:
configuration = HBaseConfiguration.create();
configuration.set("hbase.master", "hadoop1:60000");
configuration.set("hbase.zookeeper.quorum","hadoop1,hadoop2,hadoop3");
configuration.set("hbase.zookeeper.property.clientPort", "2181");
那么configuration.set("hbase.master", "hadoop1:60000"); 这个配置如何写呢?应该不是单Hmaster的写法了,万一我HMASTER发生了切换呢,如何写成集群的方式 |
|