Lily-server in Lily 2.4 on hadoop 2.0 and Hbase 0.96 throws NoServerForRegionException: Unable to find region for after 10 tries

50 views
Skip to first unread message

Viji S

unread,
Nov 7, 2013, 4:20:39 AM11/7/13
to lily-d...@googlegroups.com
hi
hadoop 2.2.0 , Hbase 0.96 and Lily 2.4 are setup on a single node. Hadoopp processes and Hbase processes - HMaster, HQuorumPeer , HRegionSever processes are running , able to create Hbase tables , Hbase logs (hmaster, regionserver) are free from any error.

When I start lily using ./lily-server, it shows the following error:
[INFO ][14:17:34,460][main      ] org.lilyproject.runtime.info - Starting module general - /home/ril/lily/lily-2.4/lib/org/lilyproject/lily-general-module/2.4/lily-general-module-2.4.jar
org.lilyproject.runtime.LilyRTException: Error constructing module defined at /home/ril/lily/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.runtime.cli.LilyRuntimeCli.run(LilyRuntimeCli.java:293)
    at org.lilyproject.runtime.cli.LilyRuntimeCli.main(LilyRuntimeCli.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.lilyproject.runtime.launcher.LilyRuntimeCliLauncher.run(LilyRuntimeCliLauncher.java:80)
    at org.lilyproject.runtime.launcher.LilyRuntimeCliLauncher.launch(LilyRuntimeCliLauncher.java:59)
    at org.lilyproject.runtime.launcher.LilyRuntimeCliLauncher.main(LilyRuntimeCliLauncher.java:55)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hbaseConfiguration' defined in LILY-INF/spring/services.xml in /home/ril/lily/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)
    ... 11 more
Caused by: 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)
    ... 23 more
Caused by: 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:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
    ... 25 more

the hbase.xml in Lily has the following configuration:

<property>
  <name>zookeeper.znode.parent</name>
  <value>/hbase</value>
</property>

     <property>
      <name>hbase.zookeeper.quorum</name>
      <value>loclahost</value>
    </property>

    <property>
      <name>hbase.zookeeper.property.clientPort</name>
      <value>2181</value>
    </property>

    <property>
      <name>hbase.replication</name>
      <value>true</value>
    </property>

Is there anything missing ?

Reply all
Reply to author
Forward
0 new messages