hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bharath v <bharathvissapragada1...@gmail.com>
Subject Re: NoServerForRegion Exception
Date Tue, 17 Nov 2009 17:53:35 GMT
19.3 .. yes stand-alone mode .... BTW it got solved .. I was referring to a
non-existent table .. :P
I am curious to know -- how did u recognize that iam running it in a
standalone mode?

On Tue, Nov 17, 2009 at 11:06 PM, Stack <saint.ack@gmail.com> wrote:

> What version of hbase?  Is this standalone hbase?
>
>
>
>
> On Nov 17, 2009, at 8:48 AM, bharath v <bharathvissapragada1990@gmail.com>
> wrote:
>
>  In the master log .. I get the following trace :
>>
>> 2009-11-18 03:31:49,198 WARN
>> org.apache.hadoop.hbase.regionserver.HRegionServer: Processing message
>> (Retry: 0)
>> java.io.IOException: java.io.IOException: java.lang.IllegalStateException:
>> Cannot set a region to be closed if it was not already marked as pending
>> close or pending open. State: name=temp_table,,1258460379941,
>> unassigned=false, pendingOpen=false, open=false, closing=true,
>> pendingClose=false, closed=false, offlined=false
>>       at
>>
>> org.apache.hadoop.hbase.master.RegionManager$RegionState.setClosed(RegionManager.java:1240)
>>       at
>>
>> org.apache.hadoop.hbase.master.RegionManager.setClosed(RegionManager.java:887)
>>       at
>>
>> org.apache.hadoop.hbase.master.ServerManager.processRegionClose(ServerManager.java:613)
>>       at
>>
>> org.apache.hadoop.hbase.master.ServerManager.processMsgs(ServerManager.java:434)
>>       at
>>
>> org.apache.hadoop.hbase.master.ServerManager.processRegionServerAllsWell(ServerManager.java:396)
>>       at
>>
>> org.apache.hadoop.hbase.master.ServerManager.regionServerReport(ServerManager.java:300)
>>       at
>>
>> org.apache.hadoop.hbase.master.HMaster.regionServerReport(HMaster.java:588)
>>       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>       at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>       at java.lang.reflect.Method.invoke(Method.java:616)
>>       at
>> org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>>       at
>> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912)
>>
>>       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:532)
>>       at
>>
>> org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
>>       at
>>
>> org.apache.hadoop.hbase.RemoteExceptionHandler.checkThrowable(RemoteExceptionHandler.java:48)
>>       at
>>
>> org.apache.hadoop.hbase.RemoteExceptionHandler.checkIOException(RemoteExceptionHandler.java:66)
>>       at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:450)
>>       at java.lang.Thread.run(Thread.java:636)
>>
>> If i execute the command u said : I get the following stack trace
>>
>> NativeException: java.io.IOException: java.io.IOException:
>> java.lang.NullPointerException
>>   at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:877)
>>   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:616)
>>   at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>>   at
>> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912)
>>
>>   from sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
>>   from sun/reflect/NativeConstructorAccessorImpl.java:57:in `newInstance'
>>   from sun/reflect/DelegatingConstructorAccessorImpl.java:45:in
>> `newInstance'
>>   from java/lang/reflect/Constructor.java:532:in `newInstance'
>>   from org/apache/hadoop/hbase/RemoteExceptionHandler.java:94:in
>> `decodeRemoteException'
>>   from org/apache/hadoop/hbase/client/HBaseAdmin.java:736:in `modifyTable'
>>   from org/apache/hadoop/hbase/client/HBaseAdmin.java:550:in `closeRegion'
>>   from org/apache/hadoop/hbase/client/HBaseAdmin.java:528:in `closeRegion'
>>   from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
>>   from sun/reflect/NativeMethodAccessorImpl.java:57:in `invoke'
>>   from sun/reflect/DelegatingMethodAccessorImpl.java:43:in `invoke'
>>   from java/lang/reflect/Method.java:616:in `invoke'
>>   from org/jruby/javasupport/JavaMethod.java:298:in
>> `invokeWithExceptionHandling'
>>   from org/jruby/javasupport/JavaMethod.java:259:in `invoke'
>>   from org/jruby/java/invokers/InstanceMethodInvoker.java:55:in `call'
>>   from org/jruby/runtime/callsite/CachingCallSite.java:155:in `call'
>> ... 114 levels...
>>   from org/jruby/internal/runtime/methods/DynamicMethod.java:226:in `call'
>>   from org/jruby/internal/runtime/methods/CompiledMethod.java:216:in
>> `call'
>>   from org/jruby/internal/runtime/methods/CompiledMethod.java:71:in `call'
>>   from org/jruby/runtime/callsite/CachingCallSite.java:260:in
>> `cacheAndCall'
>>   from org/jruby/runtime/callsite/CachingCallSite.java:75:in `call'
>>   from
>>
>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:441:in
>> `__file__'
>>   from
>>
>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:-1:in
>> `__file__'
>>   from
>>
>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:-1:in
>> `load'
>>   from org/jruby/Ruby.java:564:in `runScript'
>>   from org/jruby/Ruby.java:467:in `runNormally'
>>   from org/jruby/Ruby.java:340:in `runFromMain'
>>   from org/jruby/Main.java:214:in `run'
>>   from org/jruby/Main.java:100:in `run'
>>   from org/jruby/Main.java:84:in `main'
>>   from /home/rip/working_hadoop/hbase-0.19.3/bin/../bin/hirb.rb:332:in
>> `close_region'
>>   from (hbase):
>>
>> -------------------------------------------------------------------------------------------------------------------------
>>
>> On Tue, Nov 17, 2009 at 9:36 PM, stack <stack@duboce.net> wrote:
>>
>>  Grep the region temp_table,,1258460379941 in your master log.  Try and
>>> figure what happened to it.  Meantime, try closing it to see if that
>>> brings
>>> it back online.  In the shell do:
>>>
>>> hbase> close_region 'temp_table,,1258460379941'
>>>
>>> Watch the master logs to see it transition.
>>>
>>> St.Ack
>>>
>>> On Tue, Nov 17, 2009 at 6:43 AM, bharath v <
>>> bharathvissapragada1990@gmail.com> wrote:
>>>
>>>  Hi all ,
>>>>
>>>> I have entered the following command from hbase 'shell'
>>>>
>>>>  scan 'temp_table'
>>>>>
>>>>
>>>> Previously it worked fine .. But i have played with this table using
>>>> some
>>>> java codes .. I think something might have gone wrong while
>>>> dng that .. Can any one tell me the reason and some fix for this ?
>>>>
>>>> *I get the following error *:
>>>>
>>>> NativeException:
>>>>
>>> org.apache.hadoop.hbase.client.NoServerForRegionException:
>>>
>>>> No server address listed in .META. for region temp_table,,1258460379941
>>>>  from org/apache/hadoop/hbase/client/HConnectionManager.java:548:in
>>>> `locateRegionInMeta'
>>>>  from org/apache/hadoop/hbase/client/HConnectionManager.java:478:in
>>>> `locateRegion'
>>>>  from org/apache/hadoop/hbase/client/HConnectionManager.java:440:in
>>>> `locateRegion'
>>>>  from org/apache/hadoop/hbase/client/HTable.java:115:in `<init>'
>>>>  from org/apache/hadoop/hbase/client/HTable.java:98:in `<init>'
>>>>  from sun/reflect/NativeConstructorAccessorImpl.java:-2:in
>>>>
>>> `newInstance0'
>>>
>>>>  from sun/reflect/NativeConstructorAccessorImpl.java:57:in
>>>>
>>> `newInstance'
>>>
>>>>  from sun/reflect/DelegatingConstructorAccessorImpl.java:45:in
>>>> `newInstance'
>>>>  from java/lang/reflect/Constructor.java:532:in `newInstance'
>>>>  from org/jruby/javasupport/JavaConstructor.java:226:in `new_instance'
>>>>  from org/jruby/java/invokers/ConstructorInvoker.java:112:in `call'
>>>>  from org/jruby/java/invokers/ConstructorInvoker.java:199:in `call'
>>>>  from org/jruby/RubyClass.java:391:in `finvoke'
>>>>  from org/jruby/javasupport/util/RuntimeHelpers.java:291:in `invoke'
>>>>  from org/jruby/java/proxies/ConcreteJavaProxy.java:52:in `call'
>>>>  from org/jruby/runtime/callsite/CachingCallSite.java:310:in
>>>> `cacheAndCall'
>>>> ... 136 levels...
>>>>  from org/jruby/internal/runtime/methods/CompiledMethod.java:216:in
>>>> `call'
>>>>  from org/jruby/internal/runtime/methods/CompiledMethod.java:71:in
>>>>
>>> `call'
>>>
>>>>  from org/jruby/runtime/callsite/CachingCallSite.java:260:in
>>>> `cacheAndCall'
>>>>  from org/jruby/runtime/callsite/CachingCallSite.java:75:in `call'
>>>>  from
>>>>
>>>>
>>>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:441:in
>>>
>>>> `__file__'
>>>>  from
>>>>
>>>>
>>>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:-1:in
>>>
>>>> `__file__'
>>>>  from
>>>>
>>>>
>>>> home/rip/working_hadoop/hbase_minus_0_dot_19_dot_3/bin/$_dot_dot_/bin/hirb.rb:-1:in
>>>
>>>> `load'
>>>>  from org/jruby/Ruby.java:564:in `runScript'
>>>>  from org/jruby/Ruby.java:467:in `runNormally'
>>>>  from org/jruby/Ruby.java:340:in `runFromMain'
>>>>  from org/jruby/Main.java:214:in `run'
>>>>  from org/jruby/Main.java:100:in `run'
>>>>  from org/jruby/Main.java:84:in `main'
>>>>  from /home/rip/working_hadoop/hbase-0.19.3/bin/../bin/hirb.rb:282:in
>>>> `table'
>>>>  from /home/rip/working_hadoop/hbase-0.19.3/bin/../bin/hirb.rb:346:in
>>>> `scan'
>>>>  from (hbase):2hbase(main):002:0>
>>>>
>>>> Thanks
>>>>
>>>>
>>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message