Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4518818A3B for ; Tue, 28 Apr 2015 11:06:10 +0000 (UTC) Received: (qmail 96415 invoked by uid 500); 28 Apr 2015 11:06:07 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 96351 invoked by uid 500); 28 Apr 2015 11:06:07 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 96339 invoked by uid 99); 28 Apr 2015 11:06:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 11:06:07 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for user@hbase.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 11:05:40 +0000 Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 69E0421354 for ; Tue, 28 Apr 2015 11:05:38 +0000 (UTC) Received: by oiko83 with SMTP id o83so113055083oik.1 for ; Tue, 28 Apr 2015 04:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=05uWffgcoPaEUtmqylg3D22c6jhfsXKcCrNkHHDZF6I=; b=r0w7JExyhfcxOdOg1UYrSmpZ9pFvjd/Pzvq4mHL2+8lkX6ym1RWVRAzfgK6bnNqGvM CM5zr+iFgIuw+n4Rmw2f5ZuoF2h8DnQLx0rZjaL13WhGFAp82ZxLnHRd/BODtV/08RD6 +aP5AWBlAT7jZCg2tdWL/rA7Iskfg1PVKUyrQIdGeJoZwwu3vnna2dGzqfi0cddCDnAR rIQ7ZvmtJl94bdIKTgR0096Osk/xAPgZK/R//RWYsvhxepYaCzFCeCXPFvjo5ihtnwwt cjz57BljnSlSqUV+ReyXU/66SU53RoC9Zwtm4bckZw8UJaGascvGifkC+8ITboB847rX yIbQ== X-Received: by 10.202.177.68 with SMTP id a65mr13067190oif.46.1430219092317; Tue, 28 Apr 2015 04:04:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.51.137 with HTTP; Tue, 28 Apr 2015 04:04:32 -0700 (PDT) From: Chandrashekhar Kotekar Date: Tue, 28 Apr 2015 16:34:32 +0530 Message-ID: Subject: Cluster replication is not replicating any data To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a113cd5e8f2dd590514c6d4a3 X-Virus-Checked: Checked by ClamAV on apache.org --001a113cd5e8f2dd590514c6d4a3 Content-Type: text/plain; charset=UTF-8 Hi, I have setup cluster replication between 2 clusters but data is not getting copied. Can anyone please help me in cluster replication? I would like to know if I add only 1 row in one of the tables then will that row get replicated in other cluster or HBase waits for some time or HBase waits before certain amount of data is added/deleted/edited (like 64MB)? Clusters are based on CDH 5.3.1 which have 0.98.6 version of HBase. I have named slave nodes of both the clusters as slave1 and slave2 and master server is named as hbase-master (This setting is in /etc/hosts file). I took following steps to setup replication: 1) Set value of 'hbase.replication' property in 'hbase-site.xml' file to true in both the clusters 2) Restarted HBase master and all region servers of both the clusters. (Restarting needs to be done in any specifi order?? like master first then region server or vice versa??) 3) Disabled, Altered all the tables in both the clusters by adding "{NAME => 'CF', REPLICATION_SCOPE => 1}" in alter statement, and then enabled tables one by one. (CF is actual column family name) 4) Added peer using "add_peer '1', '10.0.21.249:2181:/hbase' " in primary cluster. 5) added peer using "add_peer 'nc' '10.0.21.111:/hbase '" in target cluster. 6) Primary cluster already has 4 rows. Added one more row having one column for COMPANY_TABLE into primary cluster. So expecting either total 5 rows in target cluster or at least newly added row in target cluster. Waited few minutes for row to get replicated into other cluster. Executed scan 'table_name' command in target cluster but didnt get that row from primary cluster. 7) Executed following verify replication command in primary cluster. This command runs m-r job and shows 4 good rows but in target cluster no row present for COMPANY_TABLE table. hbase org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication --families=CF nc COMPANY_TABLE There's no error in region server logs. Sample logs from primary cluster's region server is as as below: 15/04/28 10:48:16 INFO regionserver.HRegionServer: Adding moved region record: 1a685b27708dfea86bb2d8a9ca1bceb5 to ip-10-0-21-90.ec2.internal,60020,1430217861644:60020 as of 4873480 15/04/28 10:51:06 INFO regionserver.Replication: Normal source for cluster nc: Total replicated edits: 0, currently replicating from: hdfs://StagingCluster/hbase/WALs/slave2,60020,1430201462672/slave2%2C60020%2C1430201462672.1430215999727 at position: 83 15/04/28 10:56:06 INFO regionserver.Replication: Normal source for cluster nc: Total replicated edits: 0, currently replicating from: hdfs://StagingCluster/hbase/WALs/slave2,60020,1430201462672/slave2%2C60020%2C1430201462672.1430215999727 at position: 83 15/04/28 11:01:06 INFO regionserver.Replication: Normal source for cluster nc: Total replicated edits: 0, currently replicating from: hdfs://StagingCluster/hbase/WALs/slave2,60020,1430201462672/slave2%2C60020%2C1430201462672.1430215999727 at position: 83 Regards, Chandrash3khar Kotekar Mobile - +91 8600011455 --001a113cd5e8f2dd590514c6d4a3--