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 8AD7010237 for ; Fri, 26 Apr 2013 23:43:46 +0000 (UTC) Received: (qmail 88215 invoked by uid 500); 26 Apr 2013 23:43:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 88167 invoked by uid 500); 26 Apr 2013 23:43:44 -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 88158 invoked by uid 99); 26 Apr 2013 23:43:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 23:43:44 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.172 as permitted sender) Received: from [209.85.217.172] (HELO mail-lb0-f172.google.com) (209.85.217.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 23:43:37 +0000 Received: by mail-lb0-f172.google.com with SMTP id d10so1379838lbj.3 for ; Fri, 26 Apr 2013 16:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=K+24AcPkJ3WDUs3roaVr43VccrMtdzO4bzVP+K79p/s=; b=zaUzp3ZPGPpFlewhfwZIvb8sG/bWuH10RFRC0wbxWQvfQJ9zTleksafAizZ+wn34bk Q5zV/Lt+USmbz/Lv/7GHp7+ezaBvVZIWcWGTJqhituwWg6xp22oMpPJFmsMusv670rFp Le8e8oLZbI/4Sd7MJrVy8PqWaBGKGBL679U9oWQ4lgmrz5tseLj4nMDRg2mbUr1UkWEm /u+6srXVht6AY8JOg5G2/K76gUvu6eTaBuUdOpCm50GZblywGlgJLv4QQeWoaSrQ/xlS DxHMWhwRVdk+KDAouBmflu8BD7hSqaoBq4LoPAvmr/TpN44BfgKpW2XKbAkVQRNYprXP i92g== MIME-Version: 1.0 X-Received: by 10.112.132.227 with SMTP id ox3mr23078207lbb.108.1367019796925; Fri, 26 Apr 2013 16:43:16 -0700 (PDT) Received: by 10.112.5.101 with HTTP; Fri, 26 Apr 2013 16:43:16 -0700 (PDT) In-Reply-To: References: Date: Sat, 27 Apr 2013 07:43:16 +0800 Message-ID: Subject: Re: Dual Hadoop/HBase configuration through same client From: Ted Yu To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b343a1a65924604db4c191e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b343a1a65924604db4c191e Content-Type: text/plain; charset=ISO-8859-1 Looks like the easiest solution is to use separate clients, one for each cluster you want to connect to. Cheers On Sat, Apr 27, 2013 at 6:51 AM, Shahab Yunus wrote: > Hello, > > This is a follow-up to my previous post a few days back. I am trying to > connect to 2 different Hadoop clusters' setups through a same client but I > am running into the issue that the config of one overwrites the other. > > The scenario is that I want to read data from an HBase table from one > cluster and write it as a file on HDFS on the other. Individually, if I try > to write to them they both work but when I try this through a same Java > client, they fail. > > I have tried loading the core-site.xml through addResource method of the > Configuration class but only the first found config file is picked? I have > also tried by renaming the config files and then adding them as a resource > (again through the addResource method). > > The situation is compounded by the fact that one cluster is using Kerberos > authentication and the other is not? If the Kerberos server's file is found > first then authentication failures are faced for the other server when > Hadoop tries to find client authentication information. If the 'simple' > cluster's config is loaded first then 'Authentication is Required' error is > encountered against the Kerberos server. > > I will gladly provide more information. Is it even possible even if let us > say both servers have same security configuration or none? Any ideas? > Thanks a million. > > Regards, > Shahab > --047d7b343a1a65924604db4c191e--