If you use your compiled HBase, make sure not setting HBASE_HOME or HADOOP_HOME, which may use the unexpected libs.
On Wed, Aug 20, 2014 at 6:28 PM, @Sanjiv Singh <[email protected]> wrote: > Problem still persisted ..not able to resolve. > > > Any help is highly appreciated !!! > > Regards > Sanjiv Singh > Mob : +091 9990-447-339 > > > On Fri, Aug 15, 2014 at 10:48 AM, @Sanjiv Singh <[email protected]> > wrote: > > > Yes i have download hbase source-code and packaged myself. > > > > I didn't get by "did you also compile Hadoop 1.2 specifying to compile > > the natives for your OS?" how to do so. yes i checked under directory > > /usr/local/hadoop/hadoop-1.2.1/lib/native/Linux-amd64-64/ . native > > libraries are there. > > > > > > >> ls /usr/local/hadoop/hadoop-1.2.1/lib/native/Linux-amd64-64/ > > > > libhadoop.a libhadoop.la libhadoop.so libhadoop.so.1 > > libhadoop.so.1.0.0 > > > > Regards > > Sanjiv Singh > > Mob : +091 9990-447-339 > > > > > > On Thu, Aug 14, 2014 at 10:55 PM, Esteban Gutierrez < > [email protected]> > > wrote: > > > >> > >> > >> Sanjiv, > >> > >> Seems that you have recompiled HBase by yourself, did you also compile > >> Hadoop 1.2 specifying to compile the natives for your OS? are those > shared > >> libraries natives correctly deployed under > >> /usr/local/hadoop/hadoop-1.2.1/lib/native/Linux-amd64-64 ? > >> > >> cheers, > >> esteban. > >> > >> > >> > >> > >> -- > >> Cloudera, Inc. > >> > >> > >> > >> On Thu, Aug 14, 2014 at 8:53 AM, @Sanjiv Singh <[email protected]> > >> wrote: > >> > >>> Currently running with root directory configure as local directory. > >>> > >>> <property> > >>> <name>hbase.rootdir</name> > >>> <value>file:///usr/local/hbase/data/hbase</value> > >>> </property> > >>> > >>> Regards > >>> Sanjiv Singh > >>> Mob : +091 9990-447-339 > >>> > >>> > >>> On Thu, Aug 14, 2014 at 9:04 PM, Ted Yu <[email protected]> wrote: > >>> > >>> > What hadoop version are you using ? > >>> > > >>> > This is related thread: > >>> > http://search-hadoop.com/m/3NMzFay1Ha1 > >>> > > >>> > > >>> > On Thu, Aug 14, 2014 at 7:16 AM, @Sanjiv Singh < > [email protected] > >>> > > >>> > wrote: > >>> > > >>> >> Hi All, > >>> >> > >>> >> I am new to Hbase. Started experimenting with Hbase. > >>> >> I have downloaded source of stable branch hbase-0.98.5. > >>> >> > >>> >> Following doc for building hbase ... > >>> >> http://hbase.apache.org/book.html#build > >>> >> > >>> >> When i tried to start Hbase with bin/start-hbase.sh ..getting below > >>> error. > >>> >> Please help me in finding the issue and possible root cause. > >>> >> > >>> >> > >>> >> 2014-08-14 18:50:28,372 INFO [main] util.VersionInfo: HBase 0.98.5 > >>> >> 2014-08-14 18:50:28,372 INFO [main] util.VersionInfo: Subversion > >>> >> file:///home/impadmin/source-code/hbase-0.98.5 -r Unknown > >>> >> 2014-08-14 18:50:28,372 INFO [main] util.VersionInfo: Compiled by > >>> >> impadmin > >>> >> on Thu Aug 14 18:48:47 IST 2014 > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 > >>> 09:09 GMT > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:host.name=IMPETUS-NL147centos.impetus.co.in > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:java.version=1.7.0 > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:java.vendor=Oracle Corporation > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:java.home=/usr/java/jdk1.7.0/jre > >>> >> 2014-08-14 18:50:28,653 INFO [main] server.ZooKeeperServer: Server > >>> >> > >>> >> > >>> > environment:java.class.path=/home/impadmin/source-code/hbase-0.98.5/bin/../conf:/usr/java/jdk1.7.0/$ > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> > >>> >> > >>> > environment:java.library.path=/usr/local/hadoop/hadoop-1.2.1/libexec/../lib/native/Linux-amd64-64 > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:java.io.tmpdir=/tmp > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:java.compiler=<NA> > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:os.name=Linux > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:os.arch=amd64 > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:os.version=2.6.32-358.el6.x86_64 > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:user.name=impadmin > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:user.home=/home/impadmin > >>> >> 2014-08-14 18:50:28,654 INFO [main] server.ZooKeeperServer: Server > >>> >> environment:user.dir=/home/impadmin/source-code/hbase-0.98.5/bin > >>> >> 2014-08-14 18:50:28,702 INFO [main] server.ZooKeeperServer: Created > >>> >> server > >>> >> with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 > >>> datadir > >>> >> /tmp/hbase-impadm$ > >>> >> 2014-08-14 18:50:28,734 INFO [main] server.NIOServerCnxnFactory: > >>> binding > >>> >> to port 0.0.0.0/0.0.0.0:2181 > >>> >> 2014-08-14 18:50:28,927 INFO [NIOServerCxn.Factory: > >>> 0.0.0.0/0.0.0.0:2181] > >>> >> server.NIOServerCnxnFactory: Accepted socket connection from / > >>> >> 127.0.0.1:40972 > >>> >> 2014-08-14 18:50:28,944 INFO [NIOServerCxn.Factory: > >>> 0.0.0.0/0.0.0.0:2181] > >>> >> server.NIOServerCnxn: Processing stat command from /127.0.0.1:40972 > >>> >> 2014-08-14 18:50:28,961 INFO [Thread-1] server.NIOServerCnxn: Stat > >>> >> command > >>> >> output > >>> >> 2014-08-14 18:50:28,962 INFO [Thread-1] server.NIOServerCnxn: > Closed > >>> >> socket connection for client /127.0.0.1:40972 (no session > >>> established for > >>> >> client) > >>> >> 2014-08-14 18:50:28,963 INFO [main] zookeeper.MiniZooKeeperCluster: > >>> >> Started MiniZK Cluster and connect 1 ZK server on client port: 2181 > >>> >> 2014-08-14 18:50:29,121 DEBUG [main] master.HMaster: master/ > >>> >> IMPETUS-NL147centos.impetus.co.in/127.0.1.1:0 HConnection > >>> >> server-to-server > >>> >> retries=350 > >>> >> 2014-08-14 18:50:29,314 INFO [main] ipc.RpcServer: master/ > >>> >> IMPETUS-NL147centos.impetus.co.in/127.0.1.1:0: started 10 > reader(s). > >>> >> 2014-08-14 18:50:29,512 INFO [main] impl.MetricsConfig: loaded > >>> properties > >>> >> from hadoop-metrics2-hbase.properties > >>> >> 2014-08-14 18:50:29,566 INFO [main] impl.MetricsSystemImpl: > Scheduled > >>> >> snapshot period at 10 second(s). > >>> >> 2014-08-14 18:50:29,566 INFO [main] impl.MetricsSystemImpl: HBase > >>> metrics > >>> >> system started > >>> >> 2014-08-14 18:50:30,021 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:2794) > >>> >> 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) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:269) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.hbase.security.User$SecureHadoopUser.isSecurityEnabled(User.java:349) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.hbase.security.User$SecureHadoopUser.login(User.java:340) > >>> >> at > org.apache.hadoop.hbase.security.User.login(User.java:208) > >>> >> at > >>> >> > >>> > org.apache.hadoop.hbase.security.UserProvider.login(UserProvider.java:116) > >>> >> at > >>> org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:455) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:258) > >>> >> at > >>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >>> >> Method) > >>> >> at > >>> >> > >>> >> > >>> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > >>> >> at > >>> >> > >>> >> > >>> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > >>> >> at > >>> java.lang.reflect.Constructor.newInstance(Constructor.java:525) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:137) > >>> >> ... 7 more > >>> >> Caused by: java.lang.reflect.InvocationTargetException > >>> >> at > >>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >>> >> Method) > >>> >> at > >>> >> > >>> >> > >>> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > >>> >> at > >>> >> > >>> >> > >>> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > >>> >> at > >>> java.lang.reflect.Constructor.newInstance(Constructor.java:525) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:129) > >>> >> ... 24 more > >>> >> Caused by: java.lang.UnsatisfiedLinkError: > >>> >> org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative()V > >>> >> at > >>> >> > >>> > org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative(Native > >>> >> Method) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.security.JniBasedUnixGroupsMapping.<clinit>(JniBasedUnixGroupsMapping.java:49) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback.<init>(JniBasedUnixGroupsMappingWithFallback.java:38) > >>> >> ... 29 more > >>> >> > >>> >> > >>> >> > >>> >> Regards > >>> >> Sanjiv Singh > >>> >> Mob : +091 9990-447-339 > >>> >> > >>> > > >>> > > >>> > >> > >> > > >
