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 D85A2D3F6 for ; Fri, 24 Aug 2012 20:07:27 +0000 (UTC) Received: (qmail 48695 invoked by uid 500); 24 Aug 2012 20:07:26 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 48590 invoked by uid 500); 24 Aug 2012 20:07:25 -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 Delivered-To: moderator for user@hbase.apache.org Received: (qmail 6730 invoked by uid 99); 24 Aug 2012 19:53:09 -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 (athena.apache.org: domain of carl@cloudera.com designates 209.85.212.173 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=wDVFQ4VTwajumrj9AMeduq7jeZSbf0VZ7nlnsct32/E=; b=XzYrrVura2S0IoESyPU6W7uiqPBxgtqG4szlV7v3vjfz8dLp45vCiPKn6moTyjywxV 7VQ9xMvohCTqH0w1tL0Jv0M/XSyPjBkJrn7GsmynFacLiG7jzhgbVeQyQnPwqpJdtEwc AJN9M4+Ugng5LPJR3zRPYG8NjCtmVkCNDuTvZoQz4q7B9fVnu9BAW/a3u3PeGaDocgsE /N9erkufybUe4k5fPWxqWO95tYJKdrwkJ9g19PS2DGQ1vKwfYPpigKLnVR9rU8W+nT24 Atl8W4pz6n7Y3U90L0WHS0XLhBCsLy3xe+hhlugQ48XYZ2dNUwxTmBTdTPRWCS4+DhfW d92g== MIME-Version: 1.0 In-Reply-To: References: <2051305521-1345810255-cardhu_decombobulator_blackberry.rim.net-1556424874-@b25.c15.bise7.blackberry> Date: Fri, 24 Aug 2012 12:52:41 -0700 Message-ID: Subject: Re: alter external table location with new namenode address From: Carl Steinbach To: user@hive.apache.org Cc: bejoy_ks@yahoo.com, user@hbase.apache.org Content-Type: multipart/alternative; boundary=00504502d8479cd7b904c8085130 X-Gm-Message-State: ALoCoQlMXwX3z0fuTEibTeOPLj6RE3i00TrbQ2kO5INmHSNZ746Pa61Ymob+IkwmgrOSZcbOU3nL X-Virus-Checked: Checked by ClamAV on apache.org --00504502d8479cd7b904c8085130 Content-Type: text/plain; charset=ISO-8859-1 Directly accessing the metastore schema is generally not a good idea. Instead I recommend using the ALTER TABLE SET LOCATION command: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AlterTable%2FPartitionLocation Thanks. Carl On Fri, Aug 24, 2012 at 10:56 AM, Alok Kumar wrote: > Bejoy, > > Thank you for your help. > updated metastore n its working fine. > > Regards > -Alok > > On Fri, Aug 24, 2012 at 5:40 PM, Bejoy KS wrote: > > Yes you need to update the metastore db directly for this to be in > effect. > > > > Regards > > Bejoy KS > > > > Sent from handheld, please excuse typos. > > > > -----Original Message----- > > From: Alok Kumar > > Date: Fri, 24 Aug 2012 13:30:36 > > To: ; > > Reply-To: user@hive.apache.org > > Subject: alter external table location with new namenode address > > > > Hello, > > > > We have hive external table mapped to hbase, now moving > > from pseudo distributed to fully distributed hadoop cluster. > > > > found that hive queries are still pointing to older namenode address > > ie: hdfs://localhost:9000/user/hive/warehouse/ as it stores > > full uri in its derby metastore. > > > > Q . what would be the best way to set new namenode address? > > > > Alter table command on hive shell to set hdfs location is only > > possible for native tables!! > > should i update derby "DB_LOCATION_URI" column directly? > > > > Your help/suggestion is highly appreciated > > > > Thanks, > > Alok > > > > > --00504502d8479cd7b904c8085130--