Ted Yu, thank you very much! I upgraded Hbase and now works properly. On Tue, Aug 4, 2015 at 6:03 PM, Ted Yu <[email protected]> wrote:
> 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 < > [email protected]> 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 > > > > <configuration> > > <property> > > <name>hbase.rootdir</name> > > <value>file:///tmp</value> > > </property> > > <property> > > <name>hbase.zookeeper.property.dataDir</name> > > <value>/usr/local/var/run/zookeeper/data</value> > > </property> > > <property> > > <name>hbase.cluster.distributed</name> > > <value>true</value> > > </property> > > </configuration> > > > > 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 <[email protected]> > 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 < > > > [email protected]> wrote: > > > > > > > I used this configuration based on my environment, > > > > > > > > <configuration> > > > > <property> > > > > <name>hbase.rootdir</name> > > > > <value>file:///home/testuser/hbase</value> > > > > </property> > > > > <property> > > > > <name>hbase.zookeeper.property.dataDir</name> > > > > <value>/home/testuser/zookeeper</value> > > > > </property> > > > > </configuration> > > > > > > > > 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 <[email protected]> wrote: > > > > > > > > > > Your hbase-site.xml is effectively empty. > > > > > > > > > > Have you followed this guide ? > > > > > http://hbase.apache.org/book.html#quickstart > > > > > <http://hbase.apache.org/book.html#quickstart>> > > > > > > > > > > Cheers > > > > > > > > > > On Tue, Aug 4, 2015 at 7:23 AM, Daniel de Oliveira Mantovani < > > > > > [email protected]> 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<RETURN>' for list of supported commands. > > > > > > Type "exit<RETURN>" 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 > > > > > > <?xml version="1.0"?> > > > > > > <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> > > > > > > <!-- > > > > > > /** > > > > > > * > > > > > > * Licensed to the Apache Software Foundation (ASF) under one > > > > > > * or more contributor license agreements. See the NOTICE file > > > > > > * distributed with this work for additional information > > > > > > * regarding copyright ownership. The ASF licenses this file > > > > > > * to you under the Apache License, Version 2.0 (the > > > > > > * "License"); you may not use this file except in compliance > > > > > > * with the License. You may obtain a copy of the License at > > > > > > * > > > > > > * http://www.apache.org/licenses/LICENSE-2.0 > > > > > > * > > > > > > * Unless required by applicable law or agreed to in writing, > > software > > > > > > * distributed under the License is distributed on an "AS IS" > > BASIS, > > > > > > * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express > or > > > > implied. > > > > > > * See the License for the specific language governing > permissions > > and > > > > > > * limitations under the License. > > > > > > */ > > > > > > --> > > > > > > <configuration> > > > > > > </configuration> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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 > > > -- -dom -- Daniel de Oliveira Mantovani Business Analytic Specialist Perl Evangelist /Astrophysics hobbyist. +55 11 9 8538-9897 XOXO
