|
Amit Sela
2012-05-31, 15:55
Andrew Purtell
2012-05-31, 16:01
Amit Sela
2012-05-31, 17:35
Elliott Clark
2012-05-31, 17:52
Amit Sela
2012-05-31, 18:52
Andrew Purtell
2012-05-31, 18:56
Andrew Purtell
2012-05-31, 18:59
Andrew Purtell
2012-05-31, 19:01
Amit Sela
2012-05-31, 19:52
Andrew Purtell
2012-05-31, 20:05
Amit Sela
2012-06-02, 11:20
Andrew Purtell
2012-06-02, 11:43
Amit Sela
2012-06-02, 16:26
Andrew Purtell
2012-06-02, 18:42
Amit Sela
2012-06-03, 07:28
Bob Futrelle
2012-12-18, 04:15
|
-
HBase 0.94 security configurationsAmit Sela 2012-05-31, 15:55
Hi all,
I'm upgrading our cluster with the following versions: HBase 0.90.2 to 0.94.0 Hadoop 0.20.3 to 1.0.3 zookeeper 3.3.2 to 3.4.3 As a first step, I'm trying to run some tests on my PC and I get a SecurityException from zookeeper: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration. >From what I understand, this means that I have to create a JAAS configuration file and place it in the conf under HBASE_HOME. First of all, Is there a way to disable the use of the new security feature - I'm working on a local test cluster for now and I don't really need it... If I must use a JAAS conf - could anyone elaborate on how to setup everything: Kerberos KDC, JAAS Configuration file, where to put everything and anything else I'm missing here. Thanks.
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-05-31, 16:01
See https://cwiki.apache.org/ZOOKEEPER/zookeeper-and-sasl.html
For a fully baked (but simple) example configuration, have a look at https://github.com/apurtell/tm-ec2-demo/ . Start with https://github.com/apurtell/tm-ec2-demo/blob/master/bin/image/tarball/setup-remote On Thu, May 31, 2012 at 8:55 AM, Amit Sela <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm upgrading our cluster with the following versions: > HBase 0.90.2 to 0.94.0 > Hadoop 0.20.3 to 1.0.3 > zookeeper 3.3.2 to 3.4.3 > > As a first step, I'm trying to run some tests on my PC and I get a > SecurityException from zookeeper: > SecurityException: java.lang.SecurityException: Unable to locate a login > configuration occurred when trying to find JAAS configuration. > > From what I understand, this means that I have to create a JAAS > configuration file and place it in the conf under HBASE_HOME. > > First of all, Is there a way to disable the use of the new security feature > - I'm working on a local test cluster for now and I don't really need it... > > If I must use a JAAS conf - could anyone elaborate on how to setup > everything: Kerberos KDC, JAAS Configuration file, where to put everything > and anything else I'm missing here. > > Thanks. -- Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)
-
Re: HBase 0.94 security configurationsAmit Sela 2012-05-31, 17:35
I still don't understand if it is optional to use the security or not ?
if i'll set the following in hbase-site.xml: <property> <name>hbase.zookeeper.property.requireClientAuthScheme</name> <value></value> <description>Property from ZooKeeper's config zoo.cfg. Authentication scheme. </description> </property> will it cancel the need of sasl-authentication ? If I go back to ZooKeeper 3.3.2 (which doesn't support security) - will HBase 0.94 and Hadoop 1.0.3 work or must they run with a ZooKeeper that supports security ? On Thu, May 31, 2012 at 7:01 PM, Andrew Purtell <[EMAIL PROTECTED]> wrote: > See https://cwiki.apache.org/ZOOKEEPER/zookeeper-and-sasl.html > > For a fully baked (but simple) example configuration, have a look at > https://github.com/apurtell/tm-ec2-demo/ . Start with > > https://github.com/apurtell/tm-ec2-demo/blob/master/bin/image/tarball/setup-remote > > On Thu, May 31, 2012 at 8:55 AM, Amit Sela <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm upgrading our cluster with the following versions: > > HBase 0.90.2 to 0.94.0 > > Hadoop 0.20.3 to 1.0.3 > > zookeeper 3.3.2 to 3.4.3 > > > > As a first step, I'm trying to run some tests on my PC and I get a > > SecurityException from zookeeper: > > SecurityException: java.lang.SecurityException: Unable to locate a login > > configuration occurred when trying to find JAAS configuration. > > > > From what I understand, this means that I have to create a JAAS > > configuration file and place it in the conf under HBASE_HOME. > > > > First of all, Is there a way to disable the use of the new security > feature > > - I'm working on a local test cluster for now and I don't really need > it... > > > > If I must use a JAAS conf - could anyone elaborate on how to setup > > everything: Kerberos KDC, JAAS Configuration file, where to put > everything > > and anything else I'm missing here. > > > > Thanks. > > > > -- > Best regards, > > - Andy > > Problems worthy of attack prove their worth by hitting back. - Piet > Hein (via Tom White) >
-
Re: HBase 0.94 security configurationsElliott Clark 2012-05-31, 17:52
Security is optional. That exception is thrown and then caught during
normal startup. Can you explain what you were trying to do, what happened, and paste bin logs/configs ? On Thu, May 31, 2012 at 10:35 AM, Amit Sela <[EMAIL PROTECTED]> wrote: > I still don't understand if it is optional to use the security or not ? > > if i'll set the following in hbase-site.xml: > > <property> > <name>hbase.zookeeper.property.requireClientAuthScheme</name> > <value></value> > <description>Property from ZooKeeper's config zoo.cfg. > Authentication scheme. > </description> > </property> > > will it cancel the need of sasl-authentication ? > > If I go back to ZooKeeper 3.3.2 (which doesn't support security) - will > HBase 0.94 and Hadoop 1.0.3 work or must they run with a ZooKeeper that > supports security ? > > > On Thu, May 31, 2012 at 7:01 PM, Andrew Purtell <[EMAIL PROTECTED]> > wrote: > > > See https://cwiki.apache.org/ZOOKEEPER/zookeeper-and-sasl.html > > > > For a fully baked (but simple) example configuration, have a look at > > https://github.com/apurtell/tm-ec2-demo/ . Start with > > > > > https://github.com/apurtell/tm-ec2-demo/blob/master/bin/image/tarball/setup-remote > > > > On Thu, May 31, 2012 at 8:55 AM, Amit Sela <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > I'm upgrading our cluster with the following versions: > > > HBase 0.90.2 to 0.94.0 > > > Hadoop 0.20.3 to 1.0.3 > > > zookeeper 3.3.2 to 3.4.3 > > > > > > As a first step, I'm trying to run some tests on my PC and I get a > > > SecurityException from zookeeper: > > > SecurityException: java.lang.SecurityException: Unable to locate a > login > > > configuration occurred when trying to find JAAS configuration. > > > > > > From what I understand, this means that I have to create a JAAS > > > configuration file and place it in the conf under HBASE_HOME. > > > > > > First of all, Is there a way to disable the use of the new security > > feature > > > - I'm working on a local test cluster for now and I don't really need > > it... > > > > > > If I must use a JAAS conf - could anyone elaborate on how to setup > > > everything: Kerberos KDC, JAAS Configuration file, where to put > > everything > > > and anything else I'm missing here. > > > > > > Thanks. > > > > > > > > -- > > Best regards, > > > > - Andy > > > > Problems worthy of attack prove their worth by hitting back. - Piet > > Hein (via Tom White) > > >
-
Re: HBase 0.94 security configurationsAmit Sela 2012-05-31, 18:52
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 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:53.951 [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:54.052 [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:55.052 [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:55.053 [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:56.155 [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:56.156 [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:57.258 [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:57.259 [main-SendThread(local
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-05-31, 18:56
Security is optional.
If you don't set any SASL protected ACLs on znodes, then the client doesn't need to authenticate, you should not add any security options to the site file like you currently are, and the message on startup about the state of JAAS configuration is informative only and is not relevant to you. If you don't run with a server that supports security (like 3.3) then again the message on startup is only informative. - Andy On May 31, 2012, at 7:35 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > I still don't understand if it is optional to use the security or not ? > > if i'll set the following in hbase-site.xml: > > <property> > <name>hbase.zookeeper.property.requireClientAuthScheme</name> > <value></value> > <description>Property from ZooKeeper's config zoo.cfg. > Authentication scheme. > </description> > </property> > > will it cancel the need of sasl-authentication ? > > If I go back to ZooKeeper 3.3.2 (which doesn't support security) - will > HBase 0.94 and Hadoop 1.0.3 work or must they run with a ZooKeeper that > supports security ? > > > On Thu, May 31, 2012 at 7:01 PM, Andrew Purtell <[EMAIL PROTECTED]> wrote: > >> See https://cwiki.apache.org/ZOOKEEPER/zookeeper-and-sasl.html >> >> For a fully baked (but simple) example configuration, have a look at >> https://github.com/apurtell/tm-ec2-demo/ . Start with >> >> https://github.com/apurtell/tm-ec2-demo/blob/master/bin/image/tarball/setup-remote >> >> On Thu, May 31, 2012 at 8:55 AM, Amit Sela <[EMAIL PROTECTED]> wrote: >>> Hi all, >>> >>> I'm upgrading our cluster with the following versions: >>> HBase 0.90.2 to 0.94.0 >>> Hadoop 0.20.3 to 1.0.3 >>> zookeeper 3.3.2 to 3.4.3 >>> >>> As a first step, I'm trying to run some tests on my PC and I get a >>> SecurityException from zookeeper: >>> SecurityException: java.lang.SecurityException: Unable to locate a login >>> configuration occurred when trying to find JAAS configuration. >>> >>> From what I understand, this means that I have to create a JAAS >>> configuration file and place it in the conf under HBASE_HOME. >>> >>> First of all, Is there a way to disable the use of the new security >> feature >>> - I'm working on a local test cluster for now and I don't really need >> it... >>> >>> If I must use a JAAS conf - could anyone elaborate on how to setup >>> everything: Kerberos KDC, JAAS Configuration file, where to put >> everything >>> and anything else I'm missing here. >>> >>> Thanks. >> >> >> >> -- >> Best regards, >> >> - Andy >> >> Problems worthy of attack prove their worth by hitting back. - Piet >> Hein (via Tom White) >>
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-05-31, 18:59
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 > 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:53.951 [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:54.052 [main] WARN
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-05-31, 19:01
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 >> 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:53.951 [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]
-
Re: HBase 0.94 security configurationsAmit Sela 2012-05-31, 19:52
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
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-05-31, 20:05
Great, now remove any security related Zookeeper properties that you added in hbase-site.xml. Only keep hbase.zookeeper.quorum.
On May 31, 2012, at 9:52 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > 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)
-
Re: HBase 0.94 security configurationsAmit Sela 2012-06-02, 11:20
I still get the same error.
This is the contents of the configuration as it is set right before calling "new HBaseAdmin(getConfiguration())": key :hbase.auth.token.max.lifetime value :604800000 key :hbase.thrift.maxQueuedRequests value :1000 key :io.seqfile.compress.blocksize value :1000000 key :hbase.hstore.compactionThreshold value :3 key :hbase.coprocessor.abortonerror value :false key :hadoop.log.dir value :/tmp key :hbase.master.port value :60000 key :webinterface.private.actions value :false key :dfs.support.append value :true key :hbase.rpc.engine value :org.apache.hadoop.hbase.ipc.WritableRpcEngine key :hbase.auth.key.update.interval value :86400000 key :fs.s3.impl value :org.apache.hadoop.fs.s3.S3FileSystem key :hbase.zookeeper.leaderport value :3888 key :hadoop.native.lib value :true key :fs.checkpoint.edits.dir value :${fs.checkpoint.dir} key :ipc.server.listen.queue.size value :128 key :hbase.regionserver.hlog.reader.impl value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader key :hbase.regionserver.info.bindAddress value :0.0.0.0 key :hadoop.security.authorization value :false key :hbase.mapreduce.hfileoutputformat.blocksize value :65536 key :hbase.regionserver.hlog.writer.impl value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter key :hbase.regionserver.logroll.errors.tolerated value :2 key :hbase.regionserver.nbreservationblocks value :4 key :hbase.tmp.dir value :/tmp/hbase-${user.name} key :hbase.zookeeper.dns.nameserver value :default key :hbase.hregion.memstore.mslab.enabled value :true key :io.file.buffer.size value :4096 key :hbase.zookeeper.property.dataDir value :${hbase.tmp.dir}/zookeeper key :hbase.data.umask.enable value :false key :hadoop.logfile.size value :10000000 key :hbase.client.retries.number value :10 key :fs.webhdfs.impl value :org.apache.hadoop.hdfs.web.WebHdfsFileSystem key :ipc.client.kill.max value :10 key :hbase.regionserver.lease.period value :60000 key :hbase.defaults.for.version.skip value :false key :hbase.zookeeper.property.clientPort value :2181 key :zookeeper.znode.acl.parent value :acl key :hbase.regionserver.dns.nameserver value :default key :ipc.server.tcpnodelay value :false key :hbase.balancer.period value :300000 key :hbase.rest.readonly value :false key :hbase.master.info.bindAddress value :0.0.0.0 key :hbase.regionserver.global.memstore.upperLimit value :0.4 key :hadoop.logfile.count value :10 key :hbase.hregion.majorcompaction value :86400000 key :hbase.client.keyvalue.maxsize value :10485760 key :hadoop.security.uid.cache.secs value :14400 key :fs.ftp.impl value :org.apache.hadoop.fs.ftp.FTPFileSystem key :hbase.cluster.distributed value :false key :hbase.client.pause value :1000 key :hbase.hregion.preclose.flush.size value :5242880 key :fs.file.impl value :org.apache.hadoop.fs.LocalFileSystem key :hbase.regionserver.global.memstore.lowerLimit value :0.35 key :hbase.regionserver.handler.count value :10 key :ipc.client.connection.maxidletime value :10000 key :hbase.online.schema.update.enable value :false key :hbase.hash.type value :murmur key :hbase.hregion.max.filesize value :10737418240 key :hbase.hregion.memstore.block.multiplier value :2 key :hadoop.policy.file value :hbase-policy.xml key :hbase.hstore.blockingWaitTime value :90000 key :hbase.zookeeper.quorum value :localhost key :hbase.hregion.memstore.flush.size value :134217728 key :hbase.zookeeper.property.syncLimit value :5 key :fs.checkpoint.size value :67108864 key :io.skip.checksum.errors value :false key :fs.s3n.impl value :org.apache.hadoop.fs.s3native.NativeS3FileSystem key :hbase.zookeeper.dns.interface value :default key :fs.s3.maxRetries value :4 key :hbase.regionserver.logroll.period value :3600000 key :hbase.metrics.showTableName value :true key :hbase.offheapcache.percentage value :0 key :hbase.client.scanner.caching value :1 key :hfile.format.version value :2 key :hbase.regionserver.port value :60020 key :fs.default.name value :file:/// key :ipc.client.idlethreshold value :4000 key :fs.hsftp.impl value :org.apache.hadoop.hdfs.HsftpFileSystem key :hadoop.tmp.dir value :/tmp/hadoop-${user.name} key :fs.checkpoint.dir value :${hadoop.tmp.dir}/dfs/namesecondary key :fs.s3.block.size value :67108864 key :hbase.rs.cacheblocksonwrite value :false key :hbase.rootdir value :file:///tmp/hbase-${user.name}/hbase key :hbase.regionserver.class value :org.apache.hadoop.hbase.ipc.HRegionInterface key :hbase.regionserver.info.port value :60030 key :io.serializations value :org.apache.hadoop.io.serializer.WritableSerialization key :hbase.regionserver.msginterval value :3000 key :hbase.regionserver.dns.interface value :default key :hadoop.util.hash.type value :murmur key :io.seqfile.lazydecompress value :true key :hbase.rest.port value :8080 key :hbase.defaults.for.version value :0.94.0 key :hbase.zookeeper.peerport value :2888 key :zookeeper.znode.rootserver value :root-region-server key :io.mapfile.bloom.size value :1048576 key :io.storefile.bloom.block.size value :131072 key :fs.s3.buffer.dir value :${hadoop.tmp.dir}/s3 key :hbase.zookeeper.property.maxClientCnxns value :300 key :hbase.master.dns.interface value :default key :hbase.server.versionfile.writeattempts value :3 key :hbase.thrift.minWorkerThreads value :16 key :io.compression.codecs value key :topology.script.number.args value :100 key :fs.har.impl value :org.apache.hadoop.fs.HarFileSystem key :io.seqfile.sorter.recordlimit value :1000000 key :zookeeper.session.timeout value :1800000 key :fs.trash.interval value :0 key :local.cache.size value :10737418240 key :hadoop.security.authentication value :simple key :hadoop.security.group.mapping value :org.apache.hadoop.security.ShellBasedUnixGroupsMapping key :hbase.regions.slop value :0.2 key :hadoop.security.token.service.use_ip value :true key :ipc.client.connect.max.retries value :10 key :fs.ramfs.impl value :org.apache.hadoop.fs.InMemoryFileSystem key :hadoop.rpc.socket.factory.class.default value :org.apache.hadoop.net.StandardSock
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-06-02, 11:43
Do you have a local zookeeper running? Telnet localhost 2181 connect to anything?
Obviously we run 0.94 with no security setup with no problem. Hence looking for basic setup problems. - Andy On Jun 2, 2012, at 1:20 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > I still get the same error. > > This is the contents of the configuration as it is set right before > calling "new > HBaseAdmin(getConfiguration())": > > key :hbase.auth.token.max.lifetime > value :604800000 > key :hbase.thrift.maxQueuedRequests > value :1000 > key :io.seqfile.compress.blocksize > value :1000000 > key :hbase.hstore.compactionThreshold > value :3 > key :hbase.coprocessor.abortonerror > value :false > key :hadoop.log.dir > value :/tmp > key :hbase.master.port > value :60000 > key :webinterface.private.actions > value :false > key :dfs.support.append > value :true > key :hbase.rpc.engine > value :org.apache.hadoop.hbase.ipc.WritableRpcEngine > key :hbase.auth.key.update.interval > value :86400000 > key :fs.s3.impl > value :org.apache.hadoop.fs.s3.S3FileSystem > key :hbase.zookeeper.leaderport > value :3888 > key :hadoop.native.lib > value :true > key :fs.checkpoint.edits.dir > value :${fs.checkpoint.dir} > key :ipc.server.listen.queue.size > value :128 > key :hbase.regionserver.hlog.reader.impl > value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader > key :hbase.regionserver.info.bindAddress > value :0.0.0.0 > key :hadoop.security.authorization > value :false > key :hbase.mapreduce.hfileoutputformat.blocksize > value :65536 > key :hbase.regionserver.hlog.writer.impl > value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter > key :hbase.regionserver.logroll.errors.tolerated > value :2 > key :hbase.regionserver.nbreservationblocks > value :4 > key :hbase.tmp.dir > value :/tmp/hbase-${user.name} > key :hbase.zookeeper.dns.nameserver > value :default > key :hbase.hregion.memstore.mslab.enabled > value :true > key :io.file.buffer.size > value :4096 > key :hbase.zookeeper.property.dataDir > value :${hbase.tmp.dir}/zookeeper > key :hbase.data.umask.enable > value :false > key :hadoop.logfile.size > value :10000000 > key :hbase.client.retries.number > value :10 > key :fs.webhdfs.impl > value :org.apache.hadoop.hdfs.web.WebHdfsFileSystem > key :ipc.client.kill.max > value :10 > key :hbase.regionserver.lease.period > value :60000 > key :hbase.defaults.for.version.skip > value :false > key :hbase.zookeeper.property.clientPort > value :2181 > key :zookeeper.znode.acl.parent > value :acl > key :hbase.regionserver.dns.nameserver > value :default > key :ipc.server.tcpnodelay > value :false > key :hbase.balancer.period > value :300000 > key :hbase.rest.readonly > value :false > key :hbase.master.info.bindAddress > value :0.0.0.0 > key :hbase.regionserver.global.memstore.upperLimit > value :0.4 > key :hadoop.logfile.count > value :10 > key :hbase.hregion.majorcompaction > value :86400000 > key :hbase.client.keyvalue.maxsize > value :10485760 > key :hadoop.security.uid.cache.secs > value :14400 > key :fs.ftp.impl > value :org.apache.hadoop.fs.ftp.FTPFileSystem > key :hbase.cluster.distributed > value :false > key :hbase.client.pause > value :1000 > key :hbase.hregion.preclose.flush.size > value :5242880 > key :fs.file.impl > value :org.apache.hadoop.fs.LocalFileSystem > key :hbase.regionserver.global.memstore.lowerLimit > value :0.35 > key :hbase.regionserver.handler.count > value :10 > key :ipc.client.connection.maxidletime > value :10000 > key :hbase.online.schema.update.enable > value :false > key :hbase.hash.type > value :murmur > key :hbase.hregion.max.filesize > value :10737418240 > key :hbase.hregion.memstore.block.multiplier > value :2 > key :hadoop.policy.file > value :hbase-policy.xml > key :hbase.hstore.blockingWaitTime > value :90000 > key :hbase.zookeeper.quorum > value :localhost > key :hbase.hregion.memstore.flush.size > value :134217728 > key :hbase.zookeeper.property.syncLimit > value :5 > key :fs.checkpoint.size > value :67108864
-
Re: HBase 0.94 security configurationsAmit Sela 2012-06-02, 16:26
I don't know about a local zookeeper running.
I'm trying to run a test that extends HBaseTestingUtils. It worked fine with the old versions when it extended HBaseClusterTestCase. Since it is deprecated (also same for HBaseTestCase) I adjusted the test a little bit (things like cong, fs, dfs etc.. became private and use getters now) - maybe what i'm missing is here ? On Sat, Jun 2, 2012 at 2:43 PM, Andrew Purtell <[EMAIL PROTECTED]>wrote: > Do you have a local zookeeper running? Telnet localhost 2181 connect to > anything? > > Obviously we run 0.94 with no security setup with no problem. Hence > looking for basic setup problems. > > - Andy > > On Jun 2, 2012, at 1:20 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > > > I still get the same error. > > > > This is the contents of the configuration as it is set right before > > calling "new > > HBaseAdmin(getConfiguration())": > > > > key :hbase.auth.token.max.lifetime > > value :604800000 > > key :hbase.thrift.maxQueuedRequests > > value :1000 > > key :io.seqfile.compress.blocksize > > value :1000000 > > key :hbase.hstore.compactionThreshold > > value :3 > > key :hbase.coprocessor.abortonerror > > value :false > > key :hadoop.log.dir > > value :/tmp > > key :hbase.master.port > > value :60000 > > key :webinterface.private.actions > > value :false > > key :dfs.support.append > > value :true > > key :hbase.rpc.engine > > value :org.apache.hadoop.hbase.ipc.WritableRpcEngine > > key :hbase.auth.key.update.interval > > value :86400000 > > key :fs.s3.impl > > value :org.apache.hadoop.fs.s3.S3FileSystem > > key :hbase.zookeeper.leaderport > > value :3888 > > key :hadoop.native.lib > > value :true > > key :fs.checkpoint.edits.dir > > value :${fs.checkpoint.dir} > > key :ipc.server.listen.queue.size > > value :128 > > key :hbase.regionserver.hlog.reader.impl > > value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader > > key :hbase.regionserver.info.bindAddress > > value :0.0.0.0 > > key :hadoop.security.authorization > > value :false > > key :hbase.mapreduce.hfileoutputformat.blocksize > > value :65536 > > key :hbase.regionserver.hlog.writer.impl > > value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter > > key :hbase.regionserver.logroll.errors.tolerated > > value :2 > > key :hbase.regionserver.nbreservationblocks > > value :4 > > key :hbase.tmp.dir > > value :/tmp/hbase-${user.name} > > key :hbase.zookeeper.dns.nameserver > > value :default > > key :hbase.hregion.memstore.mslab.enabled > > value :true > > key :io.file.buffer.size > > value :4096 > > key :hbase.zookeeper.property.dataDir > > value :${hbase.tmp.dir}/zookeeper > > key :hbase.data.umask.enable > > value :false > > key :hadoop.logfile.size > > value :10000000 > > key :hbase.client.retries.number > > value :10 > > key :fs.webhdfs.impl > > value :org.apache.hadoop.hdfs.web.WebHdfsFileSystem > > key :ipc.client.kill.max > > value :10 > > key :hbase.regionserver.lease.period > > value :60000 > > key :hbase.defaults.for.version.skip > > value :false > > key :hbase.zookeeper.property.clientPort > > value :2181 > > key :zookeeper.znode.acl.parent > > value :acl > > key :hbase.regionserver.dns.nameserver > > value :default > > key :ipc.server.tcpnodelay > > value :false > > key :hbase.balancer.period > > value :300000 > > key :hbase.rest.readonly > > value :false > > key :hbase.master.info.bindAddress > > value :0.0.0.0 > > key :hbase.regionserver.global.memstore.upperLimit > > value :0.4 > > key :hadoop.logfile.count > > value :10 > > key :hbase.hregion.majorcompaction > > value :86400000 > > key :hbase.client.keyvalue.maxsize > > value :10485760 > > key :hadoop.security.uid.cache.secs > > value :14400 > > key :fs.ftp.impl > > value :org.apache.hadoop.fs.ftp.FTPFileSystem > > key :hbase.cluster.distributed > > value :false > > key :hbase.client.pause > > value :1000 > > key :hbase.hregion.preclose.flush.size > > value :5242880 > > key :fs.file.impl > > value :org.apache.hadoop.fs.LocalFileSystem
-
Re: HBase 0.94 security configurationsAndrew Purtell 2012-06-02, 18:42
It's highly likely you are not starting up zookeeper at all then. The security warning is a red herring. I filed a zookeeper issue to change the log level from warn to info so it doesn't send folks like yourself down the wrong path.
I'd advise cloning one of the working 0.94 tests that spins up a full cluster and go from there. - Andy On Jun 2, 2012, at 6:26 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > I don't know about a local zookeeper running. > I'm trying to run a test that extends HBaseTestingUtils. > It worked fine with the old versions when it extended HBaseClusterTestCase. > Since it is deprecated (also same for HBaseTestCase) I adjusted the test a > little bit (things like cong, fs, dfs etc.. became private and use getters > now) - maybe what i'm missing is here ? > > On Sat, Jun 2, 2012 at 2:43 PM, Andrew Purtell <[EMAIL PROTECTED]>wrote: > >> Do you have a local zookeeper running? Telnet localhost 2181 connect to >> anything? >> >> Obviously we run 0.94 with no security setup with no problem. Hence >> looking for basic setup problems. >> >> - Andy >> >> On Jun 2, 2012, at 1:20 PM, Amit Sela <[EMAIL PROTECTED]> wrote: >> >>> I still get the same error. >>> >>> This is the contents of the configuration as it is set right before >>> calling "new >>> HBaseAdmin(getConfiguration())": >>> >>> key :hbase.auth.token.max.lifetime >>> value :604800000 >>> key :hbase.thrift.maxQueuedRequests >>> value :1000 >>> key :io.seqfile.compress.blocksize >>> value :1000000 >>> key :hbase.hstore.compactionThreshold >>> value :3 >>> key :hbase.coprocessor.abortonerror >>> value :false >>> key :hadoop.log.dir >>> value :/tmp >>> key :hbase.master.port >>> value :60000 >>> key :webinterface.private.actions >>> value :false >>> key :dfs.support.append >>> value :true >>> key :hbase.rpc.engine >>> value :org.apache.hadoop.hbase.ipc.WritableRpcEngine >>> key :hbase.auth.key.update.interval >>> value :86400000 >>> key :fs.s3.impl >>> value :org.apache.hadoop.fs.s3.S3FileSystem >>> key :hbase.zookeeper.leaderport >>> value :3888 >>> key :hadoop.native.lib >>> value :true >>> key :fs.checkpoint.edits.dir >>> value :${fs.checkpoint.dir} >>> key :ipc.server.listen.queue.size >>> value :128 >>> key :hbase.regionserver.hlog.reader.impl >>> value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader >>> key :hbase.regionserver.info.bindAddress >>> value :0.0.0.0 >>> key :hadoop.security.authorization >>> value :false >>> key :hbase.mapreduce.hfileoutputformat.blocksize >>> value :65536 >>> key :hbase.regionserver.hlog.writer.impl >>> value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter >>> key :hbase.regionserver.logroll.errors.tolerated >>> value :2 >>> key :hbase.regionserver.nbreservationblocks >>> value :4 >>> key :hbase.tmp.dir >>> value :/tmp/hbase-${user.name} >>> key :hbase.zookeeper.dns.nameserver >>> value :default >>> key :hbase.hregion.memstore.mslab.enabled >>> value :true >>> key :io.file.buffer.size >>> value :4096 >>> key :hbase.zookeeper.property.dataDir >>> value :${hbase.tmp.dir}/zookeeper >>> key :hbase.data.umask.enable >>> value :false >>> key :hadoop.logfile.size >>> value :10000000 >>> key :hbase.client.retries.number >>> value :10 >>> key :fs.webhdfs.impl >>> value :org.apache.hadoop.hdfs.web.WebHdfsFileSystem >>> key :ipc.client.kill.max >>> value :10 >>> key :hbase.regionserver.lease.period >>> value :60000 >>> key :hbase.defaults.for.version.skip >>> value :false >>> key :hbase.zookeeper.property.clientPort >>> value :2181 >>> key :zookeeper.znode.acl.parent >>> value :acl >>> key :hbase.regionserver.dns.nameserver >>> value :default >>> key :ipc.server.tcpnodelay >>> value :false >>> key :hbase.balancer.period >>> value :300000 >>> key :hbase.rest.readonly >>> value :false >>> key :hbase.master.info.bindAddress >>> value :0.0.0.0 >>> key :hbase.regionserver.global.memstore.upperLimit >>> value :0.4 >>> key :hadoop.logfile.count >>> value :10 >>> key :hbase.hregion.majorcompaction
-
Re: HBase 0.94 security configurationsAmit Sela 2012-06-03, 07:28
Anyone has a working basic-test for hbase 0.94.0 ? I would like to have a
reference for setups... Thanks. On Sat, Jun 2, 2012 at 9:42 PM, Andrew Purtell <[EMAIL PROTECTED]>wrote: > It's highly likely you are not starting up zookeeper at all then. The > security warning is a red herring. I filed a zookeeper issue to change the > log level from warn to info so it doesn't send folks like yourself down the > wrong path. > > I'd advise cloning one of the working 0.94 tests that spins up a full > cluster and go from there. > > - Andy > > On Jun 2, 2012, at 6:26 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > > > I don't know about a local zookeeper running. > > I'm trying to run a test that extends HBaseTestingUtils. > > It worked fine with the old versions when it extended > HBaseClusterTestCase. > > Since it is deprecated (also same for HBaseTestCase) I adjusted the test > a > > little bit (things like cong, fs, dfs etc.. became private and use > getters > > now) - maybe what i'm missing is here ? > > > > On Sat, Jun 2, 2012 at 2:43 PM, Andrew Purtell <[EMAIL PROTECTED] > >wrote: > > > >> Do you have a local zookeeper running? Telnet localhost 2181 connect to > >> anything? > >> > >> Obviously we run 0.94 with no security setup with no problem. Hence > >> looking for basic setup problems. > >> > >> - Andy > >> > >> On Jun 2, 2012, at 1:20 PM, Amit Sela <[EMAIL PROTECTED]> wrote: > >> > >>> I still get the same error. > >>> > >>> This is the contents of the configuration as it is set right before > >>> calling "new > >>> HBaseAdmin(getConfiguration())": > >>> > >>> key :hbase.auth.token.max.lifetime > >>> value :604800000 > >>> key :hbase.thrift.maxQueuedRequests > >>> value :1000 > >>> key :io.seqfile.compress.blocksize > >>> value :1000000 > >>> key :hbase.hstore.compactionThreshold > >>> value :3 > >>> key :hbase.coprocessor.abortonerror > >>> value :false > >>> key :hadoop.log.dir > >>> value :/tmp > >>> key :hbase.master.port > >>> value :60000 > >>> key :webinterface.private.actions > >>> value :false > >>> key :dfs.support.append > >>> value :true > >>> key :hbase.rpc.engine > >>> value :org.apache.hadoop.hbase.ipc.WritableRpcEngine > >>> key :hbase.auth.key.update.interval > >>> value :86400000 > >>> key :fs.s3.impl > >>> value :org.apache.hadoop.fs.s3.S3FileSystem > >>> key :hbase.zookeeper.leaderport > >>> value :3888 > >>> key :hadoop.native.lib > >>> value :true > >>> key :fs.checkpoint.edits.dir > >>> value :${fs.checkpoint.dir} > >>> key :ipc.server.listen.queue.size > >>> value :128 > >>> key :hbase.regionserver.hlog.reader.impl > >>> value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader > >>> key :hbase.regionserver.info.bindAddress > >>> value :0.0.0.0 > >>> key :hadoop.security.authorization > >>> value :false > >>> key :hbase.mapreduce.hfileoutputformat.blocksize > >>> value :65536 > >>> key :hbase.regionserver.hlog.writer.impl > >>> value :org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter > >>> key :hbase.regionserver.logroll.errors.tolerated > >>> value :2 > >>> key :hbase.regionserver.nbreservationblocks > >>> value :4 > >>> key :hbase.tmp.dir > >>> value :/tmp/hbase-${user.name} > >>> key :hbase.zookeeper.dns.nameserver > >>> value :default > >>> key :hbase.hregion.memstore.mslab.enabled > >>> value :true > >>> key :io.file.buffer.size > >>> value :4096 > >>> key :hbase.zookeeper.property.dataDir > >>> value :${hbase.tmp.dir}/zookeeper > >>> key :hbase.data.umask.enable > >>> value :false > >>> key :hadoop.logfile.size > >>> value :10000000 > >>> key :hbase.client.retries.number > >>> value :10 > >>> key :fs.webhdfs.impl > >>> value :org.apache.hadoop.hdfs.web.WebHdfsFileSystem > >>> key :ipc.client.kill.max > >>> value :10 > >>> key :hbase.regionserver.lease.period > >>> value :60000 > >>> key :hbase.defaults.for.version.skip > >>> value :false > >>> key :hbase.zookeeper.property.clientPort > >>> value :2181 > >>> key :zookeeper.znode.acl.parent > >>> value
-
HBase 0.94 security configurationsBob Futrelle 2012-12-18, 04:15
I have the same problem that Amit Sela had - an endlessly repeating message
in my Eclipse console: java.net.ConnectException : Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport( ClientCnxnSocketNIO.java:286) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) 12/12/17 20:54:51 INFO zookeeper.ClientCnxn: Opening socket connection to server /fe80:0:0:0:0:0:0:1%1:2181 12/12/17 20:54:51 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master 12/12/17 20:54:51 INFO util.RetryCounter: Sleeping 2000ms before retry #1... 12/12/17 20:54:56 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration. 12/12/17 20:54:56 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. 12/12/17 20:54:56 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect I'm about as much of a newbie as you can imagine. I found a small piece of code that creates a table. It threw endless exceptions. I fixed each by finding the correct jars (7 in all) and occasionally changing a bit of the code, e.g., using, not a constructor, but HBaseConfiguration.create(); I'm using hbase-0.94.3 and Eclipse 4.2.1 (Juno). No apache/hbase plugins, just straight Eclipse/Java. The only setting I've touched is hbase-site.xml in which I put the path to the directory that I want my DBs in. It worked from HBase Shell. But of course I want it to work from Java. I suspect that the right info in the hbase-policy.xml would fix all this. But my understanding of HBase so far is too skimpy to know what to put there. My goal is to do all this work entirely within my own machine (MacBook Pro). Single user, nothing remote, no clients/cluster. For total disclosure, here's the entire source - my little HBase Hello World : package us.tsos.nlpng.hbase.test1; import java.io.IOException; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.client.HBaseAdmin; import org.apache.hadoop.hbase.HBaseConfiguration; public class JustCreateTable { public static void main(String[] args) throws IOException { org.apache.hadoop.conf.Configuration conf = HBaseConfiguration.create(); conf.set("hbase.master","localhost:60000"); HBaseAdmin hbase = new HBaseAdmin(conf); HTableDescriptor desc = new HTableDescriptor("TEST"); HColumnDescriptor meta = new HColumnDescriptor("personal".getBytes()); HColumnDescriptor prefix = new HColumnDescriptor("account".getBytes()); desc.addFamily(meta); desc.addFamily(prefix); hbase.createTable(desc); } } -- Bob Futrelle retired CS prof. working hard on an NLP system HBase will really fit the ticket "You never *learn* anything, you just get used to it." |