hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: ERROR: Can't get master address from ZooKeeper; znode data == null
Date Tue, 04 Aug 2015 15:59:41 GMT
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,
>
> <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 <yuzhihong@gmail.com> 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 <
> > 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<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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message