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 2FEFB95AD for ; Fri, 24 May 2013 20:22:13 +0000 (UTC) Received: (qmail 86558 invoked by uid 500); 24 May 2013 20:22:11 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 86517 invoked by uid 500); 24 May 2013 20:22:10 -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 86506 invoked by uid 99); 24 May 2013 20:22:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 20:22:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yoursurrogategod@gmail.com designates 209.85.192.180 as permitted sender) Received: from [209.85.192.180] (HELO mail-pd0-f180.google.com) (209.85.192.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 20:22:06 +0000 Received: by mail-pd0-f180.google.com with SMTP id 14so2119457pdc.39 for ; Fri, 24 May 2013 13:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tsdxGPR3FwzeG61pkBD6HOamECwj/5s/csspeZ6Zsy0=; b=fozYgtskkJ8i/KyMF7qR9d/HgyGIsnjhLiRrQR2Zv7w9SXF0IHGYR+OT9CoJZ7E6WL lOZOwTj1HKW1XkDGgBuIWN2t5QswrhSens+fBroq5u23pO9Og6nf+FLKp3dB8i3o25hX Bi3S/vSAPjN1KIEwIzHL/Wxlp0ZjpIAwC4K+PMgME25SOv4lfRqCcDolV8meON2Px9ul BlmfQRlMpmMwmv+xva9j33YTB79DTCpt3bVVTY9uvs/8m4AK7ERhk8/VzHuQVLRBYxon sbBCHhn0xsNYbRumD65FkZ5Yaddtzk6jHm+OtihFmMEZwRwM9PjtEkGv3TScAcLsT4BS C45g== MIME-Version: 1.0 X-Received: by 10.69.3.65 with SMTP id bu1mr19319413pbd.107.1369426906425; Fri, 24 May 2013 13:21:46 -0700 (PDT) Received: by 10.66.151.195 with HTTP; Fri, 24 May 2013 13:21:46 -0700 (PDT) In-Reply-To: References: <50124382-5140-4E08-B695-0417CAEF94FB@gmail.com> Date: Fri, 24 May 2013 16:21:46 -0400 Message-ID: Subject: Re: HBase is not running. From: "Yves S. Garret" To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b67211a4dae9e04dd7c8c32 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b67211a4dae9e04dd7c8c32 Content-Type: text/plain; charset=ISO-8859-1 Hostname is "ysg.connect". I'm ok with not using it in distributed mode, for now. This is my ifconfig info: $ ifconfig eth0 Link encap:Ethernet HWaddr 00:1A:92:46:8C:66 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2523 errors:0 dropped:0 overruns:0 frame:0 TX packets:2523 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:168399 (164.4 KiB) TX bytes:168399 (164.4 KiB) wlan0 Link encap:Ethernet HWaddr 00:1B:77:10:CE:4E inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21b:77ff:fe10:ce4e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4075657 errors:0 dropped:0 overruns:0 frame:0 TX packets:2310106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1222625846 (1.1 GiB) TX bytes:271875357 (259.2 MiB) On Fri, May 24, 2013 at 4:03 PM, Jean-Daniel Cryans wrote: > This is a machine identity problem. HBase simply uses the normal Java > APIs and asks "who am I?". The answer it gets is > ip72-215-225-9.at.at.cox.net. Changing this should only be a matter of > DNS configs, starting with /etc/hosts. What is your machine's hostname > exactly (run "hostname")? When you ping it, what does it return? That > should get you started. Does you machine even have a local IP when you > run ifconfig? If not, all you can do is force everything to localhost > in your network configs. It also means you cannot use HBase in a > distributed fashion. > > Changing the code seems like a waste of time, HBase is inherently > distributed and it relies on machines having their network correctly > configured. Your time might be better spent using a VM on your own > machine. > > J-D > > On Fri, May 24, 2013 at 12:38 PM, Yves S. Garret > wrote: > > That seems to be the case. The thing that I don't get is if I missed any > > "global" setting in order to make everything turn towards localhost. > What > > am I missing? > > > > I'll scour the HBase docs again. > > > > > > On Fri, May 24, 2013 at 1:17 PM, Jay Vyas wrote: > > > >> Yes ... get hostname and /etc/hosts synced up properly and i bet that > will > >> fix it > >> > >> > >> On Fri, May 24, 2013 at 12:41 PM, Jean-Daniel Cryans < > jdcryans@apache.org > >> >wrote: > >> > >> > Ah yeah the master advertised itself as: > >> > > >> > Attempting connect to Master server at > >> > ip72-215-225-9.at.at.cox.net,46122,1369408257140 > >> > > >> > So the region server cannot find it since that's the public address > >> > and nothing's reachable through that. Now you really need to fix your > >> > networking :) > >> > > >> > J-D > >> > > >> > On Fri, May 24, 2013 at 8:21 AM, Yves S. Garret > >> > wrote: > >> > > Ok, weird, it still seems to be looking towards Cox. > >> > > > >> > > Here is my hbase-site.xml file: > >> > > http://bin.cakephp.org/view/628322266 > >> > > > >> > > > >> > > On Thu, May 23, 2013 at 7:35 PM, Jean-Daniel Cryans < > >> jdcryans@apache.org > >> > >wrote: > >> > > > >> > >> No, I meant hbase.master.ipc.address and > >> > >> hbase.regionserver.ipc.address. See > >> > >> https://issues.apache.org/jira/browse/HBASE-8148. > >> > >> > >> > >> J-D > >> > >> > >> > >> On Thu, May 23, 2013 at 4:34 PM, Yves S. Garret > >> > >> wrote: > >> > >> > Do you mean hbase.master.info.bindAddress and > >> > >> > hbase.regionserver.info.bindAddress? I couldn't find > >> > >> > anything else in the docs. But having said that, both > >> > >> > are set to 0.0.0.0 by default. > >> > >> > > >> > >> > Also, I checked out 127.0.0.1:60010 and 0.0.0.0:60010, > >> > >> > no web gui. > >> > >> > > >> > >> > > >> > >> > On Thu, May 23, 2013 at 7:19 PM, Jean-Daniel Cryans < > >> > jdcryans@apache.org > >> > >> >wrote: > >> > >> > > >> > >> >> It should only be a matter of network configuration and not a > >> matter > >> > >> >> of whether you are a Hadoop expert or not. HBase is just trying > to > >> > get > >> > >> >> the machine's hostname and bind to it and in your case it's > given > >> > >> >> something it cannot use. It's unfortunate. > >> > >> >> > >> > >> >> IIUC your machine is hosted on cox.net? And it seems that while > >> > >> >> providing that machine they at some point set it up so that its > >> > >> >> hostname would resolve to a public address. Sounds like a > >> > >> >> misconfiguration. Anyways, you can edit your /etc/hosts so that > >> your > >> > >> >> hostname points to 127.0.0.1 or, since you are using 0.94.7, set > >> both > >> > >> >> hbase.master.ipc.address and hbase.regionserver.ipc.address to > >> > 0.0.0.0 > >> > >> >> in your hbase-site.xml so that it binds on the wildcard address > >> > >> >> instead. > >> > >> >> > >> > >> >> J-D > >> > >> >> > >> > >> >> On Thu, May 23, 2013 at 4:07 PM, Yves S. Garret > >> > >> >> wrote: > >> > >> >> > How weird. Admittedly I'm not terribly knowledgeable about > >> Hadoop > >> > >> >> > and all of its sub-projects, but I don't recall ever setting > any > >> > >> >> networking > >> > >> >> > info to something other than localhost. What would cause > this? > >> > >> >> > > >> > >> >> > > >> > >> >> > On Thu, May 23, 2013 at 6:26 PM, Jean-Daniel Cryans < > >> > >> jdcryans@apache.org > >> > >> >> >wrote: > >> > >> >> > > >> > >> >> >> That's your problem: > >> > >> >> >> > >> > >> >> >> Caused by: java.net.BindException: Problem binding to > >> > >> >> >> ip72-215-225-9.at.at.cox.net/72.215.225.9:0 : Cannot assign > >> > >> requested > >> > >> >> >> address > >> > >> >> >> > >> > >> >> >> Either it's a public address and you can't bind to it or > someone > >> > else > >> > >> >> >> is using it. > >> > >> >> >> > >> > >> >> >> J-D > >> > >> >> >> > >> > >> >> >> On Thu, May 23, 2013 at 3:24 PM, Yves S. Garret > >> > >> >> >> wrote: > >> > >> >> >> > Here is my dump of the sole log file in the logs directory: > >> > >> >> >> > http://bin.cakephp.org/view/2116332048 > >> > >> >> >> > > >> > >> >> >> > > >> > >> >> >> > On Thu, May 23, 2013 at 6:20 PM, Jean-Daniel Cryans < > >> > >> >> jdcryans@apache.org > >> > >> >> >> >wrote: > >> > >> >> >> > > >> > >> >> >> >> On Thu, May 23, 2013 at 2:50 PM, Jay Vyas < > >> > jayunit100@gmail.com> > >> > >> >> wrote: > >> > >> >> >> >> > 1) Should hbase-master be changed to localhost? > >> > >> >> >> >> > > >> > >> >> >> >> > Maybe Try changing /etc/hosts to match the actual non > >> > loopback > >> > >> ip > >> > >> >> of > >> > >> >> >> >> your machine... (i.e. just run Ifconfig | grep 1 and see > what > >> > ip > >> > >> >> comes > >> > >> >> >> out > >> > >> >> >> >> :)) > >> > >> >> >> >> > and make sure your /etc/hosts matches the file in my > blog > >> > post, > >> > >> >> (you > >> > >> >> >> >> need hbase-master to be defined in your /etc/hosts...). > >> > >> >> >> >> > >> > >> >> >> >> hbase.master was dropped around 2009 now that we have > >> > zookeeper. > >> > >> So > >> > >> >> >> >> you can set it to whatever you want, it won't change > anything > >> > :) > >> > >> >> >> >> > >> > >> >> >> >> > > >> > >> >> >> >> > 2) zookeeper parent seems bad.. > >> > >> >> >> >> > > >> > >> >> >> >> > Change hbase-rootdir to "hbase" (in hbase.rootdir) so > that > >> > it's > >> > >> >> >> >> consistent with what you defined in zookeeper parent node. > >> > >> >> >> >> > >> > >> >> >> >> Those two are really unrelated, /hbase is the default so > no > >> > need > >> > >> to > >> > >> >> >> >> override it, and I'm guessing that hbase.rootdir is > somewhere > >> > >> >> writable > >> > >> >> >> >> so that's all good. > >> > >> >> >> >> > >> > >> >> >> >> Now, regarding the "Check the value configured in > >> > >> >> >> >> 'zookeeper.znode.parent", it's triggered when the client > >> wants > >> > to > >> > >> >> read > >> > >> >> >> >> the /hbase znode in ZooKeeper but it's unable to. If it > >> doesn't > >> > >> >> exist, > >> > >> >> >> >> it might be because your HBase is homed elsewhere. It > could > >> > also > >> > >> be > >> > >> >> >> >> that HBase isn't running at all so the Master never got to > >> > create > >> > >> it. > >> > >> >> >> >> > >> > >> >> >> >> BTW you can start the shell with -d and it's gonna give > more > >> > info > >> > >> and > >> > >> >> >> >> dump all the stack traces. > >> > >> >> >> >> > >> > >> >> >> >> Going by this thread I would guess that HBase isn't > running > >> so > >> > the > >> > >> >> >> >> shell won't help. Another way to check is pointing your > >> > browser to > >> > >> >> >> >> localhost:60010 and see if the master is responding. If > not, > >> > time > >> > >> to > >> > >> >> >> >> open up the log and see what's up. > >> > >> >> >> >> > >> > >> >> >> >> J-D > >> > >> >> >> >> > >> > >> >> >> > >> > >> >> > >> > >> > >> > > >> > >> > >> > >> -- > >> Jay Vyas > >> http://jayunit100.blogspot.com > >> > --047d7b67211a4dae9e04dd7c8c32--