用命令launch-test-lily测试百合失败了

时间:2014-02-25 06:41:39

标签: hadoop solr hbase apache-zookeeper

我遵循了这个指南: http://docs.ngdata.com/lily-docs-current/414-lily.html

并使用命令: bin / launch-test-lily -s samples / books / books_sample_solr_schema.xml -c 5

测试百合-2.4。但它没有用。 我在Centos 5.5上使用java 1.6.0_20。 有什么建议吗?

在我测试百合之前,我发现在后台存在一个zookeeper进程(由另一个用户拥有)。我杀了这个过程,百合开始工作正常。谢谢,byddy86~

错误消息如下:

org.lilyproject.runtime.LilyRTException: Error constructing module defined at /home/hbaselily/lily-test/lily-2.4/lib/org/lilyproject/lily-general-module/2.4/lily-general-module-2.4.jar
     at org.lilyproject.runtime.module.build.ModuleBuilder.buildInt(ModuleBuilder.java:115)
     at org.lilyproject.runtime.module.build.ModuleBuilder.build(ModuleBuilder.java:51)
     at org.lilyproject.runtime.LilyRuntime.start(LilyRuntime.java:223)
     at org.lilyproject.lilyservertestfw.LilyServerTestUtility.start(LilyServerTestUtility.java:66)
     at org.lilyproject.lilyservertestfw.launcher.LilyLauncherService.start(LilyLauncherService.java:76)
     at org.lilyproject.lilyservertestfw.launcher.LilyLauncher.run(LilyLauncher.java:229)
     at org.lilyproject.cli.BaseCliTool.runBase(BaseCliTool.java:233)
     at org.lilyproject.cli.BaseCliTool.start(BaseCliTool.java:63)
     at org.lilyproject.lilyservertestfw.launcher.LilyLauncher.main(LilyLauncher.java:137)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.lilyproject.lilyservertestfwloader.ClassLoadingLilyLauncher.run(ClassLoadingLilyLauncher.java:71)
     at org.lilyproject.lilyservertestfwloader.ClassLoadingLilyLauncher.launch(ClassLoadingLilyLauncher.java:49)
     at org.lilyproject.lilyservertestfwloader.ClassLoadingLilyLauncher.main(ClassLoadingLilyLauncher.java:45)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hbaseConfiguration' defined in LILY-INF/spring/services.xml in /home/hbaselily/lily-test/lily-2.4/lib/org/lilyproject/lily-general-module/2.4/lily-general-module-2.4.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl]: Constructor threw exception; nested exception is org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for  after 10 tries.
     at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
     at org.lilyproject.runtime.module.build.ModuleBuilder.buildInt(ModuleBuilder.java:84)
     ... 15 more
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl]: Constructor threw exception; nested exception is org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for  after 10 tries.
     at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
     at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)
     at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
     ... 27 more
org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for  after 10 tries.
     at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:953)
     at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:858)
     at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:819)
     at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:271)
     at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:211)
     at org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl.waitOnHBase(HadoopConfigurationFactoryImpl.java:67)
     at org.lilyproject.server.modules.general.HadoopConfigurationFactoryImpl.<init>(HadoopConfigurationFactoryImpl.java:53)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
     ... 29 more

[ERROR][16:20:47,328][ 7 on 8020] org.apache.hadoop.security.UserGroupInformation - PriviledgedActionException as:hbaselily.hfs.0 (auth:SIMPLE) cause:org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /user/hbaselily/hbase/.logs/hw120,45124,1393229436244/hw120%2C45124%2C1393229436244.1393229438515 File does not exist. [Lease.  Holder: DFSClient_NONMAPREDUCE_-109415616_169, pendingcreates: 1]
[ERROR][16:20:47,334][3229436244] org.apache.hadoop.hbase.regionserver.HRegionServer - Close and delete failed
org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /user/hbaselily/hbase/.logs/hw120,45124,1393229436244/hw120%2C45124%2C1393229436244.1393229438515 File does not exist. [Lease.  Holder: DFSClient_NONMAPREDUCE_-109415616_169, pendingcreates: 1]
     at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:2396)
     at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkLease(FSNamesystem.java:2387)
     at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFileInternal(FSNamesystem.java:2454)
     at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.completeFile(FSNamesystem.java:2431)
     at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.complete(NameNodeRpcServer.java:536)
     at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.complete(ClientNamenodeProtocolServerSideTranslatorPB.java:335)
     at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:44084)
     at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:453)
     at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1002)
     at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1695)
     at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1691)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:396)
     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1408)
     at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1689)

     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     at org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:96)
     at org.apache.hadoop.hbase.RemoteExceptionHandler.checkThrowable(RemoteExceptionHandler.java:48)
     at org.apache.hadoop.hbase.regionserver.HRegionServer.closeWAL(HRegionServer.java:976)
     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:831)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.runRegionServer(MiniHBaseCluster.java:136)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.access$000(MiniHBaseCluster.java:89)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer$1.run(MiniHBaseCluster.java:120)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:337)
     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1388)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37)
     at org.apache.hadoop.hbase.security.User.call(User.java:586)
     at org.apache.hadoop.hbase.security.User.access$700(User.java:50)
     at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:426)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.run(MiniHBaseCluster.java:118)
     at java.lang.Thread.run(Thread.java:619)
[WARN ][16:20:47,338][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/replication/rs/hw120,45124,1393229436244
[WARN ][16:20:47,539][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/replication/rs/hw120,45124,1393229436244
[WARN ][16:20:47,940][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/replication/rs/hw120,45124,1393229436244
[WARN ][16:20:48,740][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/replication/rs/hw120,45124,1393229436244
[ERROR][16:20:48,741][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - ZooKeeper getChildren failed after 3 retries
[WARN ][16:20:48,741][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/rs/hw120,45124,1393229436244
[WARN ][16:20:48,941][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/rs/hw120,45124,1393229436244
[WARN ][16:20:49,342][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/rs/hw120,45124,1393229436244
[WARN ][16:20:50,143][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/rs/hw120,45124,1393229436244
[ERROR][16:20:50,143][3229436244] org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - ZooKeeper delete failed after 3 retries
[WARN ][16:20:50,143][3229436244] org.apache.hadoop.hbase.regionserver.HRegionServer - Failed deleting my ephemeral node
org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/rs/hw120,45124,1393229436244
     at org.apache.zookeeper.KeeperException.create(KeeperException.java:127)
     at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
     at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
     at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.delete(RecoverableZooKeeper.java:137)
     at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNode(ZKUtil.java:1215)
     at org.apache.hadoop.hbase.zookeeper.ZKUtil.deleteNode(ZKUtil.java:1204)
     at org.apache.hadoop.hbase.regionserver.HRegionServer.deleteMyEphemeralNode(HRegionServer.java:1068)
     at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:846)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.runRegionServer(MiniHBaseCluster.java:136)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.access$000(MiniHBaseCluster.java:89)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer$1.run(MiniHBaseCluster.java:120)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.security.auth.Subject.doAs(Subject.java:337)
     at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1388)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37)
     at org.apache.hadoop.hbase.security.User.call(User.java:586)
     at org.apache.hadoop.hbase.security.User.access$700(User.java:50)
     at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:426)
     at org.apache.hadoop.hbase.MiniHBaseCluster$MiniHBaseClusterRegionServer.run(MiniHBaseCluster.java:118)
     at java.lang.Thread.run(Thread.java:619)  

0 个答案:

没有答案