From user-return-49283-apmail-hbase-user-archive=hbase.apache.org@hbase.apache.org Tue Aug 4 21:04:24 2015 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 6FC5418A96 for ; Tue, 4 Aug 2015 21:04:24 +0000 (UTC) Received: (qmail 12261 invoked by uid 500); 4 Aug 2015 21:04:22 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 12196 invoked by uid 500); 4 Aug 2015 21:04:22 -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 12183 invoked by uid 99); 4 Aug 2015 21:04:22 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 21:04:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CC0611A977F for ; Tue, 4 Aug 2015 21:04:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FfB1Un0X4KUn for ; Tue, 4 Aug 2015 21:04:11 +0000 (UTC) Received: from mail-yk0-f171.google.com (mail-yk0-f171.google.com [209.85.160.171]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D57A62100B for ; Tue, 4 Aug 2015 21:04:10 +0000 (UTC) Received: by ykax123 with SMTP id x123so19284212yka.1 for ; Tue, 04 Aug 2015 14:03:24 -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=lT8tQWXMQtHhFLKbbuH/1vtVLe5THzk0GYIH5wWGBkQ=; b=t3wytld/SUde+OLZ6MSFGlmG26eq2DCxdn+ARaQvKizNYaTxpuMFPoErcpp7zBVIAh trpWjaFhfbwz0XWlomuFH2yL4Yjal2kRRkxlJYCqgn5pLqm3uc2UxAULNpywpZX8dsUj NYQtByFyRvbebb0I/UqJnSN4pJwUMxOIXUAbTIebewi8xSNRLy82uSIQnbYWgzzm+UKI 1jD4HelE1h+3kHQb7BEB9XguSup7sU1BYgllKlgW/Lo98Xh0qCSwxbY8UEHGELINWVFf YTUyCDz0oNE9p8o38jxwZwJmDZH+4v4TvTGGYPGLJNgNPcfAhzU57pNuDZXv1vCfBSJk JfRw== MIME-Version: 1.0 X-Received: by 10.129.57.193 with SMTP id g184mr5881648ywa.45.1438722203921; Tue, 04 Aug 2015 14:03:23 -0700 (PDT) Received: by 10.37.214.144 with HTTP; Tue, 4 Aug 2015 14:03:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Aug 2015 14:03:23 -0700 Message-ID: Subject: Re: ERROR: Can't get master address from ZooKeeper; znode data == null From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a114c78ace533d6051c829de8 --001a114c78ace533d6051c829de8 Content-Type: text/plain; charset=UTF-8 Daniel: Looks like you're hitting: HBASE-13935 Orphaned namespace table ZK node should not prevent master to start Please run HBase 1.1.1 which has the fix. Cheers On Tue, Aug 4, 2015 at 12:00 PM, Daniel de Oliveira Mantovani < daniel.oliveira.mantovani@gmail.com> wrote: > Hello Sean Busbey, > > Thank you for your great answer, I did it work. > > hbase(main):001:0> list > TABLE > > > 0 row(s) in 0.2310 seconds > > => [] > > I have to do the following steps to work on MacOSX using brew ( > http://brew.sh/). > > 1 -I had to create the "/hbase" into Zookeeper. > $ zkCli > [zk: localhost:2181(CONNECTED) 0] create /hbase base > [zk: localhost:2181(CONNECTED) 3] ls / > [hbase, zookeeper] > > 2 - Set conf/hbase-enf.xml variable "HBASE_MANAGES_ZK" to "false". > > 3 - I used the following hbase-site.xml > > > > hbase.rootdir > file:///tmp > > > hbase.zookeeper.property.dataDir > /usr/local/var/run/zookeeper/data > > > hbase.cluster.distributed > true > > > > This variable "hbase.zookeeper.property.dataDir" I got from the zoo.cfg, > you can get this using 'ps -ef|grep "zoo.cfg"', so you can have the zoo.cfg > path "/usr/local/etc/zookeeper/zoo.cfg". There you have the Zookeeper's > dataDir variable. > > What is insane is if I choose a different directory than "/tmp" it stop > works. And it ins't about permission, I created a directory with -R 777 and > this wired error persist. I attached the error log when I change from > "/tmp" directory. I attached a log.zip with the logs about this issue. > > If we fix the "/tmp", I can send a pull request and fix the brew > configuration. > > Thank you very much. > > > > On Tue, Aug 4, 2015 at 12:59 PM, Sean Busbey wrote: > > > > The current error message essentially means "I looked in ZooKeeper can > > can't tell if the master is running". > > > > can you list the current processes and see if the HMaster is present? > (use > > jps -lm) > > > > can you check the log for HMaster to see if it thinks the master is up > and > > active? > > > > can you check the HMaster status page to see if it properly shows the > > master as up and active? > > > > I think the problem is that HBase is using a different ZooKeeper ensemble > > than the shell you're trying to launch. Your current environmental config > > relies entirely on HBase internals: > > > > * hbase.rootdir should have an "hdfs://" url to rely on your local HDFS > > instance > > * zookeeper should use the quorum property to rely on your local > ZooKeeper > > deployment > > > > Presuming that your goal is to run on a single node while relying on a > > single node deployment of hadoop / zookeeper out of brew, you should > follow > > the pseudo-distributed quickstart: > > > > http://hbase.apache.org/book.html#quickstart_pseudo > > > > and read through the section on using an external ZooKeeper: > > > > http://hbase.apache.org/book.html#_using_existing_zookeeper_ensemble > > > > It sounds like we could use some documentation on better handling initial > > set up in this case. Presuming we can get things working for you, would > you > > mind making a short write up of getting started using Homebrew? I'm not > > sure yet where we'd publish it; perhaps it would be a good addition to > the > > HBase blog. > > > > On Tue, Aug 4, 2015 at 10:04 AM, Daniel de Oliveira Mantovani < > > daniel.oliveira.mantovani@gmail.com> wrote: > > > > > I used this configuration based on my environment, > > > > > > > > > > > > hbase.rootdir > > > file:///home/testuser/hbase > > > > > > > > > hbase.zookeeper.property.dataDir > > > /home/testuser/zookeeper > > > > > > > > > > > > I even tried to use the Hbase's zookeeper and I have the same error > which > > > don' t tell anything. > > > > > > :( > > > > > > > > > > > > On Tue, Aug 4, 2015 at 11:55 AM, Ted Yu wrote: > > > > > > > > Your hbase-site.xml is effectively empty. > > > > > > > > Have you followed this guide ? > > > > http://hbase.apache.org/book.html#quickstart > > > > > > > > > > > > > Cheers > > > > > > > > On Tue, Aug 4, 2015 at 7:23 AM, Daniel de Oliveira Mantovani < > > > > daniel.oliveira.mantovani@gmail.com> wrote: > > > > > > > > > Good morning, > > > > > > > > > > I just installed Hbase from brew repository, in MacOSX (Darwin > Kernel > > > > > Version 14.3.0) > > > > > > > > > > Hbase 1.0.1, hadoop 2.7.1, zookeeper 3.4.6-1. > > > > > > > > > > Lab:~ danielmantovani$ hbase shell > > > > > SLF4J: Class path contains multiple SLF4J bindings. > > > > > SLF4J: Found binding in > > > > > > > > > > > > > > > > > [jar:file:/usr/local/Cellar/hbase/1.0.1/libexec/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] > > > > > SLF4J: Found binding in > > > > > > > > > > > > > > > > > [jar:file:/usr/local/Cellar/hadoop/2.7.1/libexec/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] > > > > > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for > an > > > > > explanation. > > > > > SLF4J: Actual binding is of type > [org.slf4j.impl.Log4jLoggerFactory] > > > > > 2015-08-04 11:16:16.755 java[57627:2374333] Unable to load realm > info > > > from > > > > > SCDynamicStore > > > > > 2015-08-04 11:16:16,933 WARN [main] util.NativeCodeLoader: Unable > to > > > load > > > > > native-hadoop library for your platform... using builtin-java > classes > > > where > > > > > applicable > > > > > HBase Shell; enter 'help' for list of supported commands. > > > > > Type "exit" to leave the HBase Shell > > > > > Version 1.0.1, r66a93c09df3b12ff7b86c39bc8475c60e15af82d, Fri Apr > 17 > > > > > 22:14:06 PDT 2015 > > > > > > > > > > The HDFS and Zookeeper works fine, but the Hbase ins't working > > > properly. > > > > > hbase(main):001:0> list > > > > > TABLE > > > > > > > > > > > > > > > > > > > > ERROR: Can't get master address from ZooKeeper; znode data == null > > > > > > > > > > Here is some help for this command: > > > > > List all tables in hbase. Optional regular expression parameter > could > > > > > be used to filter the output. Examples: > > > > > > > > > > hbase> list > > > > > hbase> list 'abc.*' > > > > > hbase> list 'ns:abc.*' > > > > > hbase> list 'ns:.*' > > > > > > > > > > > > > > > hbase(main):002:0> list > > > > > TABLE > > > > > > > > > > > > > > > > > > > > ERROR: Can't get master address from ZooKeeper; znode data == null > > > > > > > > > > Here is some help for this command: > > > > > List all tables in hbase. Optional regular expression parameter > could > > > > > be used to filter the output. Examples: > > > > > > > > > > hbase> list > > > > > hbase> list 'abc.*' > > > > > hbase> list 'ns:abc.*' > > > > > hbase> list 'ns:.*' > > > > > > > > > > > > > > > > > > > > > > > > > My configuration hbase-site.xml > > > > > > > > > > 177-57-219-207:conf danielmantovani$ cat hbase-site.xml > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I research on the internet but I couldn't find anything to help > me. I > > > don' > > > > > t know what to do anymore. > > > > > > > > > > Thank you! > > > > > > > > > > > > > > > -- > > > > > > > > > > -dom > > > > > > > > > > -- > > > > > > > > > > Daniel de Oliveira Mantovani > > > > > Business Analytic Specialist > > > > > Perl Evangelist /Astrophysics hobbyist. > > > > > +55 11 9 8538-9897 > > > > > XOXO > > > > > > > > > > > > > > > > > > > > -- > > > > > > -dom > > > > > > -- > > > > > > Daniel de Oliveira Mantovani > > > Business Analytic Specialist > > > Perl Evangelist /Astrophysics hobbyist. > > > +55 11 9 8538-9897 > > > XOXO > > > > > > > > > > > -- > > Sean > > > > > -- > > -dom > > -- > > Daniel de Oliveira Mantovani > Business Analytic Specialist > Perl Evangelist /Astrophysics hobbyist. > +55 11 9 8538-9897 > XOXO > --001a114c78ace533d6051c829de8--