Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> HBase 0.94 security configurations


Copy link to this message
-
Re: HBase 0.94 security configurations
I did some debug and the code does calls HBaseConfiguration.create() -
since my test extends HBaseTestingUtility.
and conf.properties.get("hbase.zookeeper.quorum") returns "localhost".

Is that properly set, or should it be something else ? keep in my it's a
test running on my laptop, so it seems OK to me.
On Thu, May 31, 2012 at 10:01 PM, Andrew Purtell
<[EMAIL PROTECTED]>wrote:

> I mean of course server null means that hbase.zookeeper.quorum config
> property is unset. And the two most common reasons are:
>
> 1. Not defined in the site file
>
> 2. Configuration object not created with HBaseConfiguration.create()
>
> I hope this is clearer.
>
> On May 31, 2012, at 8:59 PM, Andrew Purtell <[EMAIL PROTECTED]>
> wrote:
>
> > Server null usually means you haven't configured hbase.zookeeper.quorum
> in your client's hbase-site.xml file. And that is usually because you are
> using a Configuration not created by HBaseConfiguration.create()
> >
> > If so the JAAS warning is a red herring.
> >
> > On May 31, 2012, at 8:52 PM, Amit Sela <[EMAIL PROTECTED]> wrote:
> >
> >> I'm trying to run a test for HBase (some think we wrote, internal) on my
> >> laptop - runs perfectly with the old versions of Hadoop, HBase and
> >> ZooKeeeper.
> >>
> >> After deploying the new versions and re-compiling our code, I run the
> test.
> >>
> >> When I try to instantiate  "new HBaseAdmin(getConfiguration())" - where
> the
> >> configuration is from HBaseTestingUtility, I get the following on the
> >> console output:
> >>
> >> 2012-05-31 21:36:51.728 [main-SendThread(localhost.localdomain:2181)]
> WARN
> >> org.apache.zookeeper.client.ZooKeeperSaslClient              -
> >> SecurityException: java.lang.SecurityException: Unable to locate a login
> >> configuration occurred when trying to find JAAS configuration.
> >> 2012-05-31 21:36:51.741 [main-SendThread(localhost.localdomain:2181)]
> WARN
> >> org.apache.zookeeper.ClientCnxn                              - Session
> 0x0
> >> for server null, unexpected error, closing socket connection and
> attempting
> >> reconnect
> >> java.net.ConnectException: Connection refused
> >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> ~[na:1.6.0_31]
> >> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> >> ~[na:1.6.0_31]
> >> at
> >>
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
> >> ~[zookeeper-3.4.3.jar:3.4.3-1240972]
> >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
> >> ~[zookeeper-3.4.3.jar:3.4.3-1240972]
> >> 2012-05-31 21:36:51.852 [main]      WARN
> >> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper       - Possibly
> >> transient ZooKeeper exception:
> >> org.apache.zookeeper.KeeperException$ConnectionLossException:
> >> KeeperErrorCode = ConnectionLoss for /hbase/master
> >> 2012-05-31 21:36:52.847 [main-SendThread(localhost.localdomain:2181)]
> WARN
> >> org.apache.zookeeper.client.ZooKeeperSaslClient              -
> >> SecurityException: java.lang.SecurityException: Unable to locate a login
> >> configuration occurred when trying to find JAAS configuration.
> >> 2012-05-31 21:36:52.848 [main-SendThread(localhost.localdomain:2181)]
> WARN
> >> org.apache.zookeeper.ClientCnxn                              - Session
> 0x0
> >> for server null, unexpected error, closing socket connection and
> attempting
> >> reconnect
> >> java.net.ConnectException: Connection refused
> >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> ~[na:1.6.0_31]
> >> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> >> ~[na:1.6.0_31]
> >> at
> >>
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
> >> ~[zookeeper-3.4.3.jar:3.4.3-1240972]
> >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
> >> ~[zookeeper-3.4.3.jar:3.4.3-1240972]
> >> 2012-05-31 21:36:53.949 [main-SendThread(localhost.localdomain:2181)]
> WARN
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB