Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B1F117C91 for ; Wed, 9 Dec 2015 16:32:12 +0000 (UTC) Received: (qmail 19838 invoked by uid 500); 9 Dec 2015 16:32:11 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 19744 invoked by uid 500); 9 Dec 2015 16:32:11 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 19713 invoked by uid 99); 9 Dec 2015 16:32:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 16:32:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2BE752C1F5D for ; Wed, 9 Dec 2015 16:32:11 +0000 (UTC) Date: Wed, 9 Dec 2015 16:32:11 +0000 (UTC) From: "Yong Zheng (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-14958) regionserver.HRegionServer: Master passed us a different hostname to use; was=n04docker2, but now=192.168.3.114 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Yong Zheng created HBASE-14958: ---------------------------------- Summary: regionserver.HRegionServer: Master passed us a different hostname to use; was=n04docker2, but now=192.168.3.114 Key: HBASE-14958 URL: https://issues.apache.org/jira/browse/HBASE-14958 Project: HBase Issue Type: Bug Affects Versions: 1.1.2 Environment: physical machines: redhat7.1 docker version: 1.9.1 Reporter: Yong Zheng I have two physical machines: c3m3n03docker and c3m3n04docker. I started two docker instances per physical node. the topology is like: n03docker1(172.17.1.2) -\ | br0(172.17.1.1) + c3m3n03 n03docker2(172.17.1.3) -/ n04docker1(172.17.2.2) -\ | br0(172.17.2.1) + c3m3n04 n04docker2(172.17.2.3) -/ for physical machines, c3m3n03 is bundled with physical adapter enp11s0f0 with IP (192.168.3.113/16); c3m3n04 is bundled with physical adapter enp11s0f0 with IP(192.168.3.114/16). these two physical adapters are connecting to the same switch. Note: br0 is not bundled to physical adapter enp11s0f0 on both nodes. so, all requests in 172.17.2.x will be source NAT as 192.168.3.114(c3m3n04) and forwarded to c3m3n03. n03docker1: hbase(1.1.2) master n03docker2: region server n04docker1: region server n04docker2: region server I first start the n03docker1 and n03docker2, it works; after that, I start n04docker1 and it will reported: 2015-12-09 08:01:58,259 ERROR [regionserver/n04docker2.gpfs.net/172.17.2.3:16020] regionserver.HRegionServer: Master passed us a different hostname to use; was=n04docker2.gpfs.net, but now=192.168.3.114 on the master logs: 2015-12-09 08:11:12,234 INFO [PriorityRpcServer.handler=0,queue=0,port=16000] master.ServerManager: Registering server=192.168.3.114,16020,1449666670721 So, you see, when hbase master receives the requests from n04docker1, all these requests are source NATed with 192.168.3.114(not 172.17.2.2). and hbase master passes 192.168.3.114 back to 172.17.2.2(n04docker1). Thus, n04docker1(172.17.2.2) reported exceptions in logs. hbase doesn't support running in virtualization cluster? because SNAT is widely used in virtualization. if hbase master get remote hostname/ip(thus get 192.168.3.114) and pass it back to region server, it will hit this issues. HBASE-8667 doesn't fix this issue because the fix has been hbase 0.98(I'm taking hbase 1.1.2). -- This message was sent by Atlassian JIRA (v6.3.4#6332)