hbase 配置replica个数
1,
vi /hadoop/app/hbase/conf/hbase-default.xml
<property>
<name>Dfs.replication</name>
<value>2</value>
</property>
2, restart hbase
hbase-daemon.sh stop thrift
hbase-daemon.sh stop regionserver
hbase-daemon.sh stop master
hbase-daemon.sh stop zookeeper
start-hbase.sh
hbase-daemon.sh start thrift
3, reset hadoop replica
hadoop dfs -setrep -R -w 2 /
4, check hbase replica
hadoop fsck /
#Missing replicas: 0 (0.0 %)
hadoop dfs -ls /hbase
#-rw-r--r-- 2 root supergroup 3 2012-02-16 16:55 /hbase/hbase.version