You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Margusja <ma...@roo.ee> on 2014/04/09 18:58:02 UTC

ZooKeeper available but no active master location found

Hi

I downloaded and installed hortonworks sandbox 2.0 for virtualbox.
HBase version is: 0.96.0.2.0.6.0-76-hadoop2, 
re6d7a56f72914d01e55c0478d74e5cfd3778f231
[hbase@sandbox twitbase-master]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
10.0.2.15       sandbox.hortonworks.com sandbox

[hbase@sandbox twitbase-master]$ hostname
sandbox.hortonworks.com

[root@sandbox ~]# netstat -lnp | grep 2181
tcp        0      0 0.0.0.0:2181 0.0.0.0:*                   LISTEN      
19359/java

[root@sandbox ~]# netstat -lnp | grep 60000
tcp        0      0 10.0.2.15:60000 0.0.0.0:*                   
LISTEN      28549/java

[hbase@sandbox twitbase-master]$ hbase shell
14/04/05 05:56:44 INFO Configuration.deprecation: hadoop.native.lib is 
deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.96.0.2.0.6.0-76-hadoop2, 
re6d7a56f72914d01e55c0478d74e5cfd3778f231, Thu Oct 17 18:15:20 PDT 2013

hbase(main):001:0> list
TABLE
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/usr/lib/zookeeper/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
explanation.
ambarismoketest
mytable
simple_hcat_load_table
users
weblogs
5 row(s) in 4.6040 seconds

=> ["ambarismoketest", "mytable", "simple_hcat_load_table", "users", 
"weblogs"]
hbase(main):002:0>

So far is good.

I'd like to play with a code: https://github.com/hbaseinaction/twitbase

downloaded and made package: mvn package and  got twitbase-1.0.0.jar.

When I try to exec code I will get:
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:host.name=sandbox.hortonworks.com
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.version=1.6.0_30
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.vendor=Sun Microsystems Inc.
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.class.path=target/twitbase-1.0.0.jar
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.library.path=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.io.tmpdir=/tmp
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:java.compiler=<NA>
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:os.version=2.6.32-431.11.2.el6.x86_64
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:user.name=hbase
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:user.home=/home/hbase
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client 
environment:user.dir=/home/hbase/twitbase-master
14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Initiating client 
connection, connectString=10.0.2.15:2181 sessionTimeout=180000 
watcher=hconnection
14/04/05 05:59:50 INFO zookeeper.ClientCnxn: Opening socket connection 
to server /10.0.2.15:2181
14/04/05 05:59:50 INFO zookeeper.RecoverableZooKeeper: The identifier of 
this process is 30414@sandbox.hortonworks.com
14/04/05 05:59:50 INFO client.ZooKeeperSaslClient: Client will not 
SASL-authenticate because the default JAAS configuration section 
'Client' could not be found. If you are not using SASL, you may ignore 
this. On the other hand, if you expected SASL to work, please fix your 
JAAS configuration.
14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Socket connection 
established to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Session establishment 
complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid = 
0x1453145e9500038, negotiated timeout = 40000
14/04/05 05:59:51 INFO 
client.HConnectionManager$HConnectionImplementation: ZooKeeper available 
but no active master location found
14/04/05 05:59:51 INFO 
client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 
of 10 failed; retrying after sleep of 1000
org.apache.hadoop.hbase.MasterNotRunningException
         at 
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:634)
         at 
org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:106)
         at HBaseIA.TwitBase.InitTables.main(InitTables.java:20)

InitTables.java 
https://github.com/hbaseinaction/twitbase/blob/master/src/main/java/HBaseIA/TwitBase/InitTables.java
The line that drops error is: HBaseAdminadmin=newHBaseAdmin(conf);

Log line: "ZooKeeper available but no active master location found" is 
from org/apache/hadoop/hbase/client/HConnectionManager.java

[hbase@sandbox twitbase-master]$ jps
30473 Jps
28549 HMaster
28896 RESTServer
28916 HRegionServer
28902 ThriftServer
[hbase@sandbox twitbase-master]$

As much I read ther might be somthing wrong with binding and DNS resolving.

Any hints?

-- 
Best regards, Margus (Margusja) Roo
+372 51 48 780
http://margus.roo.ee
http://ee.linkedin.com/in/margusroo
skype: margusja
ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"


Re: ZooKeeper available but no active master location found

Posted by Ted Yu <yu...@gmail.com>.
Here was the change I made to pom.xml in order to build against
0.98.1-hadoop1:
http://pastebin.com/JEX3A0kR

I still got some compilation errors, such as:

[ERROR]
/Users/tyu/twitbase/src/main/java/HBaseIA/TwitBase/hbase/RelationsDAO.java:[156,14]
cannot find symbol
[ERROR] symbol  : method
coprocessorExec(java.lang.Class<HBaseIA.TwitBase.coprocessors.RelationCountProtocol>,byte[],byte[],org.apache.hadoop.hbase.client.coprocessor.Batch.Call<HBaseIA.TwitBase.coprocessors.RelationCountProtocol,java.lang.Long>)
[ERROR] location: interface org.apache.hadoop.hbase.client.HTableInterface

Will revisit this when I have time.

FYI


On Thu, Apr 10, 2014 at 12:11 AM, Margusja <ma...@roo.ee> wrote:

> Yes there is:
>       <groupId>org.apache.hbase</groupId>
>       <artifactId>hbase</artifactId>
>       <version>0.92.1</version>
>
> Best regards, Margus (Margusja) Roo
> +372 51 48 780
> http://margus.roo.ee
> http://ee.linkedin.com/in/margusroo
> skype: margusja
> ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"
>
> On 10/04/14 00:57, Ted Yu wrote:
>
>> Have you modified pom.xml of twitbase ?
>> If not, this is the dependency you get:
>>      <dependency>
>>        <groupId>org.apache.hbase</groupId>
>>        <artifactId>hbase</artifactId>
>>        <version>0.92.1</version>
>>
>> 0.92.1 and 0.96.0 are not compatible.
>>
>> Cheers
>>
>>
>> On Wed, Apr 9, 2014 at 10:58 AM, Margusja <ma...@roo.ee> wrote:
>>
>>  Hi
>>>
>>> I downloaded and installed hortonworks sandbox 2.0 for virtualbox.
>>> HBase version is: 0.96.0.2.0.6.0-76-hadoop2,
>>> re6d7a56f72914d01e55c0478d74e5
>>> cfd3778f231
>>> [hbase@sandbox twitbase-master]$ cat /etc/hosts
>>> # Do not remove the following line, or various programs
>>> # that require network functionality will fail.
>>> 127.0.0.1       localhost.localdomain localhost
>>> 10.0.2.15       sandbox.hortonworks.com sandbox
>>>
>>> [hbase@sandbox twitbase-master]$ hostname
>>> sandbox.hortonworks.com
>>>
>>> [root@sandbox ~]# netstat -lnp | grep 2181
>>> tcp        0      0 0.0.0.0:2181 0.0.0.0:*                   LISTEN
>>>   19359/java
>>>
>>> [root@sandbox ~]# netstat -lnp | grep 60000
>>> tcp        0      0 10.0.2.15:60000 0.0.0.0:*                   LISTEN
>>>     28549/java
>>>
>>> [hbase@sandbox twitbase-master]$ hbase shell
>>> 14/04/05 05:56:44 INFO Configuration.deprecation: hadoop.native.lib is
>>> deprecated. Instead, use io.native.lib.available
>>> HBase Shell; enter 'help<RETURN>' for list of supported commands.
>>> Type "exit<RETURN>" to leave the HBase Shell
>>> Version 0.96.0.2.0.6.0-76-hadoop2, re6d7a56f72914d01e55c0478d74e5
>>> cfd3778f231,
>>> Thu Oct 17 18:15:20 PDT 2013
>>>
>>> hbase(main):001:0> list
>>> TABLE
>>> SLF4J: Class path contains multiple SLF4J bindings.
>>> SLF4J: Found binding in [jar:file:/usr/lib/zookeeper/
>>> lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/
>>> slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>>> explanation.
>>> ambarismoketest
>>> mytable
>>> simple_hcat_load_table
>>> users
>>> weblogs
>>> 5 row(s) in 4.6040 seconds
>>>
>>> => ["ambarismoketest", "mytable", "simple_hcat_load_table", "users",
>>> "weblogs"]
>>> hbase(main):002:0>
>>>
>>> So far is good.
>>>
>>> I'd like to play with a code: https://github.com/hbaseinaction/twitbase
>>>
>>> downloaded and made package: mvn package and  got twitbase-1.0.0.jar.
>>>
>>> When I try to exec code I will get:
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48
>>> GMT
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:host.name
>>> =
>>> sandbox.hortonworks.com
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.version=1.6.0_30
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.vendor=Sun Microsystems Inc.
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.class.path=target/twitbase-1.0.0.jar
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.library.path=/usr/lib/jvm/java-1.6.0-
>>> openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/
>>> java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/
>>> jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/
>>> usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.io.tmpdir=/tmp
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:java.compiler=<NA>
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:os.name
>>> =Linux
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:os.arch=amd64
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:os.version=2.6.32-431.11.2.el6.x86_64
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:user.name
>>> =hbase
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:user.home=/home/hbase
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>>> environment:user.dir=/home/hbase/twitbase-master
>>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Initiating client connection,
>>> connectString=10.0.2.15:2181 sessionTimeout=180000 watcher=hconnection
>>> 14/04/05 05:59:50 INFO zookeeper.ClientCnxn: Opening socket connection to
>>> server /10.0.2.15:2181
>>> 14/04/05 05:59:50 INFO zookeeper.RecoverableZooKeeper: The identifier of
>>> this process is 30414@sandbox.hortonworks.com
>>> 14/04/05 05:59:50 INFO client.ZooKeeperSaslClient: Client will not
>>> SASL-authenticate because the default JAAS configuration section 'Client'
>>> could not be found. If you are not using SASL, you may ignore this. On
>>> the
>>> other hand, if you expected SASL to work, please fix your JAAS
>>> configuration.
>>> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Socket connection
>>> established
>>> to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
>>> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Session establishment
>>> complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid =
>>> 0x1453145e9500038, negotiated timeout = 40000
>>> 14/04/05 05:59:51 INFO client.HConnectionManager$
>>> HConnectionImplementation:
>>> ZooKeeper available but no active master location found
>>> 14/04/05 05:59:51 INFO client.HConnectionManager$
>>> HConnectionImplementation:
>>> getMaster attempt 0 of 10 failed; retrying after sleep of 1000
>>> org.apache.hadoop.hbase.MasterNotRunningException
>>>          at org.apache.hadoop.hbase.client.HConnectionManager$
>>> HConnectionImplementation.getMaster(HConnectionManager.java:634)
>>>          at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(
>>> HBaseAdmin.java:106)
>>>          at HBaseIA.TwitBase.InitTables.main(InitTables.java:20)
>>>
>>> InitTables.java https://github.com/hbaseinaction/twitbase/blob/
>>> master/src/main/java/HBaseIA/TwitBase/InitTables.java
>>> The line that drops error is: HBaseAdminadmin=newHBaseAdmin(conf);
>>>
>>> Log line: "ZooKeeper available but no active master location found" is
>>> from org/apache/hadoop/hbase/client/HConnectionManager.java
>>>
>>> [hbase@sandbox twitbase-master]$ jps
>>> 30473 Jps
>>> 28549 HMaster
>>> 28896 RESTServer
>>> 28916 HRegionServer
>>> 28902 ThriftServer
>>> [hbase@sandbox twitbase-master]$
>>>
>>> As much I read ther might be somthing wrong with binding and DNS
>>> resolving.
>>>
>>> Any hints?
>>>
>>> --
>>> Best regards, Margus (Margusja) Roo
>>> +372 51 48 780
>>> http://margus.roo.ee
>>> http://ee.linkedin.com/in/margusroo
>>> skype: margusja
>>> ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"
>>>
>>>
>>>
>

Re: ZooKeeper available but no active master location found

Posted by Margusja <ma...@roo.ee>.
Yes there is:
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase</artifactId>
       <version>0.92.1</version>

Best regards, Margus (Margusja) Roo
+372 51 48 780
http://margus.roo.ee
http://ee.linkedin.com/in/margusroo
skype: margusja
ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"

On 10/04/14 00:57, Ted Yu wrote:
> Have you modified pom.xml of twitbase ?
> If not, this is the dependency you get:
>      <dependency>
>        <groupId>org.apache.hbase</groupId>
>        <artifactId>hbase</artifactId>
>        <version>0.92.1</version>
>
> 0.92.1 and 0.96.0 are not compatible.
>
> Cheers
>
>
> On Wed, Apr 9, 2014 at 10:58 AM, Margusja <ma...@roo.ee> wrote:
>
>> Hi
>>
>> I downloaded and installed hortonworks sandbox 2.0 for virtualbox.
>> HBase version is: 0.96.0.2.0.6.0-76-hadoop2, re6d7a56f72914d01e55c0478d74e5
>> cfd3778f231
>> [hbase@sandbox twitbase-master]$ cat /etc/hosts
>> # Do not remove the following line, or various programs
>> # that require network functionality will fail.
>> 127.0.0.1       localhost.localdomain localhost
>> 10.0.2.15       sandbox.hortonworks.com sandbox
>>
>> [hbase@sandbox twitbase-master]$ hostname
>> sandbox.hortonworks.com
>>
>> [root@sandbox ~]# netstat -lnp | grep 2181
>> tcp        0      0 0.0.0.0:2181 0.0.0.0:*                   LISTEN
>>   19359/java
>>
>> [root@sandbox ~]# netstat -lnp | grep 60000
>> tcp        0      0 10.0.2.15:60000 0.0.0.0:*                   LISTEN
>>     28549/java
>>
>> [hbase@sandbox twitbase-master]$ hbase shell
>> 14/04/05 05:56:44 INFO Configuration.deprecation: hadoop.native.lib is
>> deprecated. Instead, use io.native.lib.available
>> HBase Shell; enter 'help<RETURN>' for list of supported commands.
>> Type "exit<RETURN>" to leave the HBase Shell
>> Version 0.96.0.2.0.6.0-76-hadoop2, re6d7a56f72914d01e55c0478d74e5cfd3778f231,
>> Thu Oct 17 18:15:20 PDT 2013
>>
>> hbase(main):001:0> list
>> TABLE
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in [jar:file:/usr/lib/zookeeper/
>> lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/
>> slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>> explanation.
>> ambarismoketest
>> mytable
>> simple_hcat_load_table
>> users
>> weblogs
>> 5 row(s) in 4.6040 seconds
>>
>> => ["ambarismoketest", "mytable", "simple_hcat_load_table", "users",
>> "weblogs"]
>> hbase(main):002:0>
>>
>> So far is good.
>>
>> I'd like to play with a code: https://github.com/hbaseinaction/twitbase
>>
>> downloaded and made package: mvn package and  got twitbase-1.0.0.jar.
>>
>> When I try to exec code I will get:
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:host.name=
>> sandbox.hortonworks.com
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.version=1.6.0_30
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.vendor=Sun Microsystems Inc.
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.class.path=target/twitbase-1.0.0.jar
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.library.path=/usr/lib/jvm/java-1.6.0-
>> openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/
>> java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/
>> jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/
>> usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.io.tmpdir=/tmp
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:java.compiler=<NA>
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:os.name
>> =Linux
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:os.arch=amd64
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:os.version=2.6.32-431.11.2.el6.x86_64
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:user.name
>> =hbase
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:user.home=/home/hbase
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
>> environment:user.dir=/home/hbase/twitbase-master
>> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Initiating client connection,
>> connectString=10.0.2.15:2181 sessionTimeout=180000 watcher=hconnection
>> 14/04/05 05:59:50 INFO zookeeper.ClientCnxn: Opening socket connection to
>> server /10.0.2.15:2181
>> 14/04/05 05:59:50 INFO zookeeper.RecoverableZooKeeper: The identifier of
>> this process is 30414@sandbox.hortonworks.com
>> 14/04/05 05:59:50 INFO client.ZooKeeperSaslClient: Client will not
>> SASL-authenticate because the default JAAS configuration section 'Client'
>> could not be found. If you are not using SASL, you may ignore this. On the
>> other hand, if you expected SASL to work, please fix your JAAS
>> configuration.
>> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Socket connection established
>> to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
>> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Session establishment
>> complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid =
>> 0x1453145e9500038, negotiated timeout = 40000
>> 14/04/05 05:59:51 INFO client.HConnectionManager$HConnectionImplementation:
>> ZooKeeper available but no active master location found
>> 14/04/05 05:59:51 INFO client.HConnectionManager$HConnectionImplementation:
>> getMaster attempt 0 of 10 failed; retrying after sleep of 1000
>> org.apache.hadoop.hbase.MasterNotRunningException
>>          at org.apache.hadoop.hbase.client.HConnectionManager$
>> HConnectionImplementation.getMaster(HConnectionManager.java:634)
>>          at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(
>> HBaseAdmin.java:106)
>>          at HBaseIA.TwitBase.InitTables.main(InitTables.java:20)
>>
>> InitTables.java https://github.com/hbaseinaction/twitbase/blob/
>> master/src/main/java/HBaseIA/TwitBase/InitTables.java
>> The line that drops error is: HBaseAdminadmin=newHBaseAdmin(conf);
>>
>> Log line: "ZooKeeper available but no active master location found" is
>> from org/apache/hadoop/hbase/client/HConnectionManager.java
>>
>> [hbase@sandbox twitbase-master]$ jps
>> 30473 Jps
>> 28549 HMaster
>> 28896 RESTServer
>> 28916 HRegionServer
>> 28902 ThriftServer
>> [hbase@sandbox twitbase-master]$
>>
>> As much I read ther might be somthing wrong with binding and DNS resolving.
>>
>> Any hints?
>>
>> --
>> Best regards, Margus (Margusja) Roo
>> +372 51 48 780
>> http://margus.roo.ee
>> http://ee.linkedin.com/in/margusroo
>> skype: margusja
>> ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"
>>
>>


Re: ZooKeeper available but no active master location found

Posted by Ted Yu <yu...@gmail.com>.
Have you modified pom.xml of twitbase ?
If not, this is the dependency you get:
    <dependency>
      <groupId>org.apache.hbase</groupId>
      <artifactId>hbase</artifactId>
      <version>0.92.1</version>

0.92.1 and 0.96.0 are not compatible.

Cheers


On Wed, Apr 9, 2014 at 10:58 AM, Margusja <ma...@roo.ee> wrote:

> Hi
>
> I downloaded and installed hortonworks sandbox 2.0 for virtualbox.
> HBase version is: 0.96.0.2.0.6.0-76-hadoop2, re6d7a56f72914d01e55c0478d74e5
> cfd3778f231
> [hbase@sandbox twitbase-master]$ cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1       localhost.localdomain localhost
> 10.0.2.15       sandbox.hortonworks.com sandbox
>
> [hbase@sandbox twitbase-master]$ hostname
> sandbox.hortonworks.com
>
> [root@sandbox ~]# netstat -lnp | grep 2181
> tcp        0      0 0.0.0.0:2181 0.0.0.0:*                   LISTEN
>  19359/java
>
> [root@sandbox ~]# netstat -lnp | grep 60000
> tcp        0      0 10.0.2.15:60000 0.0.0.0:*                   LISTEN
>    28549/java
>
> [hbase@sandbox twitbase-master]$ hbase shell
> 14/04/05 05:56:44 INFO Configuration.deprecation: hadoop.native.lib is
> deprecated. Instead, use io.native.lib.available
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 0.96.0.2.0.6.0-76-hadoop2, re6d7a56f72914d01e55c0478d74e5cfd3778f231,
> Thu Oct 17 18:15:20 PDT 2013
>
> hbase(main):001:0> list
> TABLE
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/lib/zookeeper/
> lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/
> slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> ambarismoketest
> mytable
> simple_hcat_load_table
> users
> weblogs
> 5 row(s) in 4.6040 seconds
>
> => ["ambarismoketest", "mytable", "simple_hcat_load_table", "users",
> "weblogs"]
> hbase(main):002:0>
>
> So far is good.
>
> I'd like to play with a code: https://github.com/hbaseinaction/twitbase
>
> downloaded and made package: mvn package and  got twitbase-1.0.0.jar.
>
> When I try to exec code I will get:
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:host.name=
> sandbox.hortonworks.com
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.version=1.6.0_30
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.vendor=Sun Microsystems Inc.
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.class.path=target/twitbase-1.0.0.jar
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.library.path=/usr/lib/jvm/java-1.6.0-
> openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/
> java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/
> jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/
> usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.io.tmpdir=/tmp
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:java.compiler=<NA>
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:os.name
> =Linux
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:os.arch=amd64
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:os.version=2.6.32-431.11.2.el6.x86_64
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client environment:user.name
> =hbase
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:user.home=/home/hbase
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Client
> environment:user.dir=/home/hbase/twitbase-master
> 14/04/05 05:59:50 INFO zookeeper.ZooKeeper: Initiating client connection,
> connectString=10.0.2.15:2181 sessionTimeout=180000 watcher=hconnection
> 14/04/05 05:59:50 INFO zookeeper.ClientCnxn: Opening socket connection to
> server /10.0.2.15:2181
> 14/04/05 05:59:50 INFO zookeeper.RecoverableZooKeeper: The identifier of
> this process is 30414@sandbox.hortonworks.com
> 14/04/05 05:59:50 INFO client.ZooKeeperSaslClient: Client will not
> SASL-authenticate because the default JAAS configuration section 'Client'
> could not be found. If you are not using SASL, you may ignore this. On the
> other hand, if you expected SASL to work, please fix your JAAS
> configuration.
> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Socket connection established
> to sandbox.hortonworks.com/10.0.2.15:2181, initiating session
> 14/04/05 05:59:51 INFO zookeeper.ClientCnxn: Session establishment
> complete on server sandbox.hortonworks.com/10.0.2.15:2181, sessionid =
> 0x1453145e9500038, negotiated timeout = 40000
> 14/04/05 05:59:51 INFO client.HConnectionManager$HConnectionImplementation:
> ZooKeeper available but no active master location found
> 14/04/05 05:59:51 INFO client.HConnectionManager$HConnectionImplementation:
> getMaster attempt 0 of 10 failed; retrying after sleep of 1000
> org.apache.hadoop.hbase.MasterNotRunningException
>         at org.apache.hadoop.hbase.client.HConnectionManager$
> HConnectionImplementation.getMaster(HConnectionManager.java:634)
>         at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(
> HBaseAdmin.java:106)
>         at HBaseIA.TwitBase.InitTables.main(InitTables.java:20)
>
> InitTables.java https://github.com/hbaseinaction/twitbase/blob/
> master/src/main/java/HBaseIA/TwitBase/InitTables.java
> The line that drops error is: HBaseAdminadmin=newHBaseAdmin(conf);
>
> Log line: "ZooKeeper available but no active master location found" is
> from org/apache/hadoop/hbase/client/HConnectionManager.java
>
> [hbase@sandbox twitbase-master]$ jps
> 30473 Jps
> 28549 HMaster
> 28896 RESTServer
> 28916 HRegionServer
> 28902 ThriftServer
> [hbase@sandbox twitbase-master]$
>
> As much I read ther might be somthing wrong with binding and DNS resolving.
>
> Any hints?
>
> --
> Best regards, Margus (Margusja) Roo
> +372 51 48 780
> http://margus.roo.ee
> http://ee.linkedin.com/in/margusroo
> skype: margusja
> ldapsearch -x -h ldap.sk.ee -b c=EE "(serialNumber=37303140314)"
>
>