Hi Ted

Any update on this error? i tried Pseudo-Distributed mode But i still have
error

hbase(main):001:0> create 't1','c1'

ERROR: org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative()V

Here is some help for this command:
Creates a table. Pass a table name, and a set of column family
specifications (at least one), and, optionally, table configuration.
Column specification can be a simple string (name), or a dictionary
(dictionaries are described below in main help output), necessarily
including NAME attribute.
Examples:................



---------- Forwarded message ----------
From: beeshma r <beeshm...@gmail.com>
Date: Sun, Nov 2, 2014 at 7:22 AM
Subject: Re: error in starting hbase
To: user@hbase.apache.org


Hi Ted,

Thanks for your reply. Yes i am running  standalone mode
After changing my zookeeper property its resolved .And now i have another
two issues .

2014-11-02 07:06:32,948 DEBUG [main] master.HMaster:
master/ubuntu.ubuntu-domain/127.0.1.1:0 HConnection server-to-server
retries=350
2014-11-02 07:06:33,458 INFO  [main] ipc.RpcServer:
master/ubuntu.ubuntu-domain/127.0.1.1:0: started 10 reader(s).
2014-11-02 07:06:33,670 INFO  [main] impl.MetricsConfig: loaded properties
from hadoop-metrics2-hbase.properties
2014-11-02 07:06:33,766 INFO  [main] impl.MetricsSystemImpl: Scheduled
snapshot period at 10 second(s).
2014-11-02 07:06:33,766 INFO  [main] impl.MetricsSystemImpl: HBase metrics
system started
2014-11-02 07:06:34,592 ERROR [main] master.HMasterCommandLine: Master
exiting
java.lang.RuntimeException: Failed construction of Master: class
org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasternull
    at
org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:140)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:202)
    at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:152)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:179)
    at
org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:135)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2785)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
    at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
    at org.apache.hadoop.security.Groups.<init>(Groups.java:55)
    at
org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:182)
    at
org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:235)
    at
org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:214)
    at
org.apache.hadoop.security.UserGroupInformation.isAuthenticationMethodEnabled(UserGroupInformation.java:275)

----------------------------------------------------------

And when i create table

hbase(main):001:0> create 't1','e1'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/beeshma/hbase-0.98.6.1-hadoop2/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/beeshma/hadoop-1.2.1/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.

ERROR: org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative()V

---------------------

 hbase(main):002:0> list
TABLE


ERROR: Could not initialize class
org.apache.hadoop.security.JniBasedUnixGroupsMapping

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):003:0> beeshma@ubuntu:~/hbase-0.98.6.1-hadoop2/bin$



On Sun, Nov 2, 2014 at 7:01 AM, Ted Yu <yuzhih...@gmail.com> wrote:

> Are you running hbase in standalone mode ?
>
> See http://hbase.apache.org/book.html#zookeeper
>
> bq. To toggle HBase management of ZooKeeper, use the HBASE_MANAGES_ZK
> variable
> in conf/hbase-env.sh.
>
> Cheers
>
> On Sun, Nov 2, 2014 at 6:41 AM, beeshma r <beeshm...@gmail.com> wrote:
>
> > HI
> >
> > When i start hbase fallowing error is occurred .How to  solve this? i
> > haven't add any zokeeper path anywhere?
> >
> > Please suggest this.
> >
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:java.io.tmpdir=/tmp
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:java.compiler=<NA>
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:os.name=Linux
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:os.arch=amd64
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:os.version=3.11.0-12-generic
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:user.name=beeshma
> > 2014-11-01 20:01:51,196 INFO  [main] server.ZooKeeperServer: Server
> > environment:user.home=/home/beeshma
> > 2014-11-01 20:01:51,197 INFO  [main] server.ZooKeeperServer: Server
> > environment:user.dir=/home/beeshma/hbase-0.98.6.1-hadoop2/bin
> > 2014-11-01 20:01:51,202 ERROR [main] master.HMasterCommandLine: Master
> > exiting
> > java.io.IOException: Unable to create data directory
> > /home/beesh_hadoop2/zookeeper/zookeeper_0/version-2
> >     at
> >
> >
> org.apache.zookeeper.server.persistence.FileTxnSnapLog.<init>(FileTxnSnapLog.java:85)
> >     at
> >
> >
> org.apache.zookeeper.server.ZooKeeperServer.<init>(ZooKeeperServer.java:213)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:162)
> >     at
> >
> >
> org.apache.hadoop.hbase.zookeeper.MiniZooKeeperCluster.startup(MiniZooKeeperCluster.java:131)
> >     at
> >
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:165)
> >     at
> >
> >
> org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:135)
> >     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> >     at
> >
> >
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
> >     at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2785)
> >
>



-- 








--

Reply via email to