2017-02-16 2 views
0

내가 2 HBase를 클러스터 이름이 A와 B를 복사하지, 각 클러스터 (3) 기계를 가지고, 내가 두 클러스터 간의 복제를 사용하려면, 여기HBase를 복제 데이터

HBase를 현장에 설정을 추가 단계를합니다. XML 마스터 클러스터 A의

<property> 
    <name>hbase.replication</name> 
    <value>true</value> 
</property> 

, 추가 피어

add_peer '2',"wxmaster1,wxmaster2,wxslave1:2181:/hbase2" 

이 반환 성공은 내가 로그에서 볼 수 있듯이, 마스터 로그를 클러스터의 S init을했다 클러스터 B 영역 서버에 대한 연결 끊기.

는 동안하지,

create 'test_replication', {NAME => 'cf', REPLICATION_SCOPE => '1', VERSIONS => '2', KEEP_DELETED_CELLS => 'TRUE'} 

그럼 내가 모든 것을 확인해야한다고 생각 동일한 클러스터 A의 테이블과 B, 클러스터 클러스터 B에 복사합니다 테이블 'test_replication'에서 어떤 변화를 만들고, 무엇이든 오류 기록. 여기

status 'replication' enter image description here

2017-02-16 18:31:34,570 WARN [regionserver/wxmaster2/172.16.178.78:16021.logRoller] regionserver.ReplicationSource: Queue size: 3 exceeds value of replication.source.log.queue.warn: 2 
2017-02-16 18:31:34,572 INFO [regionserver/wxmaster2/172.16.178.78:16021.logRoller] wal.FSHLog: Archiving hdfs://cluster1/hbase/WALs/wxmaster2,16021,1487233892284/wxmaster2%2C16021%2C1487233892284.default.1487233894071 to hdfs://cluster1/hbase/oldWALs/wxmaster2%2C16021%2C1487233892284.default.1487233894071 
2017-02-16 18:31:34,586 INFO [regionserver/wxmaster2/172.16.178.78:16021.logRoller] wal.FSHLog: Archiving hdfs://cluster1/hbase/WALs/wxmaster2,16021,1487233892284/wxmaster2%2C16021%2C1487233892284.default.1487237494395 to hdfs://cluster1/hbase/oldWALs/wxmaster2%2C16021%2C1487233892284.default.1487237494395 
2017-02-16 18:36:33,914 INFO [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=1.65 MB, freeSize=1.57 GB, max=1.57 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=749, evicted=0, evictedPerRun=0.0 
2017-02-16 18:36:34,394 INFO [wxmaster2:16021Replication Statistics #0] regionserver.Replication: Normal source for cluster 2: Total replicated edits: 0, currently replicating from: null at position: 0 

사람에 대한 결과가 나를 도울 수있다?

그리고, 내가 사용하고

하둡-2.5.2 finnaly 내가 인해 내 add_peer 명령 오류로 문제를 해결
HBase를-1.0.1
사육사-3.4.6

답변

0

의 znode가

add_peer해야 존재하지 않았다 '2', 'wxmaster1, wxmaster2, wxslave1 : 2181 :/HBase를 "