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 5939AF5AC for ; Sat, 11 May 2013 23:33:11 +0000 (UTC) Received: (qmail 18280 invoked by uid 500); 11 May 2013 23:33:08 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 18228 invoked by uid 500); 11 May 2013 23:33:08 -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 18208 invoked by uid 99); 11 May 2013 23:33:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 23:33:08 +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 dontariq@gmail.com designates 209.85.128.175 as permitted sender) Received: from [209.85.128.175] (HELO mail-ve0-f175.google.com) (209.85.128.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 23:33:04 +0000 Received: by mail-ve0-f175.google.com with SMTP id cz11so2228076veb.34 for ; Sat, 11 May 2013 16:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=q1Id51uzwTo5xbpbpSEXsGPs66qthVGG2qQ205vQyt0=; b=pBpWzWRA3Er2bELosrj6EgZovieQXp4GFDKPBICb6oKcJ1kKmm4f0dZpySb3ZGFPOr VU/SixuPFkfBTPrJ+FT3ADYYIAHbHfXicmams1F8M5ROTtDrdJwx6CZI5s13gxJQ8Jyt QrkBgkaNTMrbL1b+nFyiElYjx3a4X9xQODvgF5uoJTwsaxNZsxjq4xiw37BNfZpQGT3W 0FHC/Z6ER5y9ccrpV+jt5F8kGRaOXSIBymv/tk1M7RqLo/j/feR3CHxsr3M1sxR9bE5i 20sKYt/hxcG+TT39q0cnPlDLQAELMAlsnid/u6UdLFOzW7/d/MntK9gfFZuUQzc2jUJL woNw== X-Received: by 10.220.53.138 with SMTP id m10mr14840140vcg.29.1368315163489; Sat, 11 May 2013 16:32:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.152.36 with HTTP; Sat, 11 May 2013 16:32:03 -0700 (PDT) In-Reply-To: References: <-1200892837622829172@unknownmsgid> From: Mohammad Tariq Date: Sun, 12 May 2013 05:02:03 +0530 Message-ID: Subject: Re: Does Hbase read .bashrc file?? To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11c2c72842bafd04dc79b34c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2c72842bafd04dc79b34c Content-Type: text/plain; charset=ISO-8859-1 I see. It was actually a Linux "thing". Thank you so much for the clarification. Warm Regards, Tariq cloudfront.blogspot.com On Sun, May 12, 2013 at 4:51 AM, Amandeep Khurana wrote: > The #!/usr/bin/bash command in the script tells the shell to execute the > script as a bash script. The execution is done by forking off a new shell > instance, inside of which the bashrc is sourced automatically. It's not a > HBase script specific phenomena. > > Like you said - removing the HADOOP_HOME env variable from the bashrc would > solve the problem. > > > On Sat, May 11, 2013 at 1:02 PM, Mohammad Tariq > wrote: > > > Hello Aman, > > > > Thank you so much for the quick response. But why would that happen? > I > > mean the required env variables are present in hbase-env.sh already. What > > is the need to source bashrc? > > > > Consider a scenario wherein you want to run Hbase in standalone mode. You > > have a Hadoop setup on the same machine and HADOOP_HOME is set in bashrc, > > but you don't want to use hadoop for some reason. In that case Hbase will > > face connection issues as it'll try to contact the Hadoop host(as > > HADOOP_HOME is present in bashrc) which is not running because it is > > standalone setup. On the other hand if you are running Hbase in pseudo > > distributed mode and if you haven't set HADOOP_HOME in bashrc, it would > > still work. > > > > I'm sorry to be a pest of questions. I am actually not able to understand > > this. Pardon my ignorance. > > > > Warm Regards, > > Tariq > > cloudfront.blogspot.com > > > > > > On Sun, May 12, 2013 at 1:14 AM, Amandeep Khurana > > wrote: > > > > > The start script is a shell script and it forks a new shell when the > > > script is executed. That'll source the bashrc file. > > > > > > On May 11, 2013, at 12:39 PM, Mohammad Tariq > wrote: > > > > > > > Hello list, > > > > > > > > Does Hbase read the environment variables set in > > > > *~/.bashrc*file everytime I issue > > > > *bin/start-hbase.sh*??What could be the possible reasons for > > > that?Specially > > > > if I have a standalone setup on my local FS. > > > > > > > > Thank you so much for your time. > > > > > > > > Warm Regards, > > > > Tariq > > > > cloudfront.blogspot.com > > > > > > --001a11c2c72842bafd04dc79b34c--