You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Xueling Shu <xs...@systemsbiology.org> on 2009/12/17 19:44:05 UTC
Questions from a newbie
Hi there:
I followed the tutorial and set up a standalone environment, but then
experienced some problems.
1. Whenever I executed "start-hbase.sh", an exception will be thrown. The
server can still be started. But if I know how to get rid of the exception
that would be great.
localhost: starting zookeeper, logging to
/home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-zookeeper-carolina.out
starting master, logging to
/home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-master-carolina.out
java.io.IOException:
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode =
NoNode for /hbase/master
at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:332)
at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddress(ZooKeeperWrapper.java:318)
at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddress(ZooKeeperWrapper.java:250)
at
org.apache.hadoop.hbase.master.ZKMasterAddressWatcher.waitForMasterAddressAvailability(ZKMasterAddressWatcher.java:82)
at
org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:267)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:254)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:94)
at
org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1214)
2. I created a table and populated some data. But whenever I tried to
disable the table, the following exception is thrown:
09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers: Cache hit
for row <> in tableName .META.: location server 10.10.6.244:42752, location
region name .META.,,1
09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers:
Rowscanned=1, rowsOffline=0
09/12/17 10:20:40 DEBUG client.HBaseAdmin: Sleep. Waiting for all regions to
be disabled from Genome
09/12/17 10:20:44 DEBUG client.HBaseAdmin: Wake. Waiting for all regions to
be disabled from Genome
NativeException: org.apache.hadoop.hbase.RegionException: Retries exhausted,
it took too long to wait for the table Genome to be disabled.
from org/apache/hadoop/hbase/client/HBaseAdmin.java:411:in
`disableTable'
from org/apache/hadoop/hbase/client/HBaseAdmin.java:370:in
`disableTable'
from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
from java/lang/reflect/Method.java:597: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:44:in `call'
from org/jruby/runtime/callsite/CachingCallSite.java:110:in `call'
from org/jruby/ast/CallOneArgNode.java:57:in `interpret'
from org/jruby/ast/NewlineNode.java:104:in `interpret'
from org/jruby/ast/BlockNode.java:71:in `interpret'
from
org/jruby/internal/runtime/methods/InterpretedMethod.java:163:in `call'
from org/jruby/internal/runtime/methods/DefaultMethod.java:144:in
`call'
from org/jruby/runtime/callsite/CachingCallSite.java:110:in `call'
... 106 levels...
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb#start:-1:in
`call'
from org/jruby/internal/runtime/methods/DynamicMethod.java:226:in
`call'
from org/jruby/internal/runtime/methods/CompiledMethod.java:211:in
`call'
from org/jruby/internal/runtime/methods/CompiledMethod.java:71:in
`call'
from org/jruby/runtime/callsite/CachingCallSite.java:253:in
`cacheAndCall'
from org/jruby/runtime/callsite/CachingCallSite.java:72:in `call'
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:497:in
`__file__'
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:-1:in
`load'
from org/jruby/Ruby.java:577:in `runScript'
from org/jruby/Ruby.java:480:in `runNormally'
from org/jruby/Ruby.java:354:in `runFromMain'
from org/jruby/Main.java:229:in `run'
from org/jruby/Main.java:110:in `run'
from org/jruby/Main.java:94:in `main'
from /home/xshu/tools/hadoop/hbase-0.20.2/bin/../bin/hirb.rb:350:in
`disable'
Thanks!
Xueling
Re: Questions from a newbie
Posted by stack <st...@duboce.net>.
On Thu, Dec 17, 2009 at 10:44 AM, Xueling Shu <xs...@systemsbiology.org>wrote:
> Hi there:
>
> I followed the tutorial and set up a standalone environment, but then
> experienced some problems.
>
> 1. Whenever I executed "start-hbase.sh", an exception will be thrown. The
> server can still be started. But if I know how to get rid of the exception
> that would be great.
>
> localhost: starting zookeeper, logging to
>
> /home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-zookeeper-carolina.out
> starting master, logging to
>
> /home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-master-carolina.out
> java.io.IOException:
> org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode =
> NoNode for /hbase/master
>
This is transient exception that shows on startup. Its harmless. Its not
logged in head of the 0.20 branch IIRC.
>
>
> 2. I created a table and populated some data. But whenever I tried to
> disable the table, the following exception is thrown:
>
> 09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers: Cache hit
> for row <> in tableName .META.: location server 10.10.6.244:42752,
> location
> region name .META.,,1
> 09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers:
> Rowscanned=1, rowsOffline=0
> 09/12/17 10:20:40 DEBUG client.HBaseAdmin: Sleep. Waiting for all regions
> to
> be disabled from Genome
> 09/12/17 10:20:44 DEBUG client.HBaseAdmin: Wake. Waiting for all regions to
> be disabled from Genome
> NativeException: org.apache.hadoop.hbase.RegionException: Retries
> exhausted,
> it took too long to wait for the table Genome to be disabled.
>
Yeah, enable/disable is flakey (See
https://issues.apache.org/jira/browse/HBASE-1636). Do it a few times and it
usually works eventually. To be fixed in 0.21.
St.Ack
Re: Questions from a newbie
Posted by stack <st...@duboce.net>.
On Thu, Dec 17, 2009 at 10:54 AM, Xueling Shu <xs...@systemsbiology.org>wrote:
> More exceptions this time when trying to do "count". But after restarted
> the
> server, I could do "disable", but not "count" (count was performed before
> disable).
>
> count 'Genome'
> 09/12/17 10:43:48 DEBUG client.HConnectionManager$TableServers: Cached
> location address: 10.10.6.244:42752, regioninfo: REGION => {NAME =>
> 'Genome,,1261073862801', STARTKEY => '', ENDKEY => '', ENCODED =>
> 1424081298, TABLE => {{NAME => 'Genome', FAMILIES => [{NAME => 'contents',
> COMPRESSION => 'LZO', VERSIONS => '3', TTL => '2147483647', BLOCKSIZE =>
> '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}}
> 09/12/17 10:43:48 DEBUG client.HTable$ClientScanner: Creating scanner over
> Genome starting at key ''
> 09/12/17 10:43:48 DEBUG client.HTable$ClientScanner: Advancing internal
> scanner to startKey at ''
> 09/12/17 10:43:48 DEBUG client.HConnectionManager$TableServers: Cache hit
> for row <> in tableName Genome: location server 10.10.6.244:42752,
> location
> region name Genome,,1261073862801
> NativeException: org.apache.hadoop.hbase.client.RetriesExhaustedException:
> Trying to contact region server 10.10.6.244:42752 for region
> Genome,,1261073862801, row '', but failed after 5 attempts.
> Exceptions:
> org.apache.hadoop.hbase.NotServingRegionException:
> org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
>
It says its not serving this region. My guess is that the enable of all
regions did not complete. Do it a few times.
St.Ack
Re: Questions from a newbie
Posted by Xueling Shu <xs...@systemsbiology.org>.
More exceptions this time when trying to do "count". But after restarted the
server, I could do "disable", but not "count" (count was performed before
disable).
count 'Genome'
09/12/17 10:43:48 DEBUG client.HConnectionManager$TableServers: Cached
location address: 10.10.6.244:42752, regioninfo: REGION => {NAME =>
'Genome,,1261073862801', STARTKEY => '', ENDKEY => '', ENCODED =>
1424081298, TABLE => {{NAME => 'Genome', FAMILIES => [{NAME => 'contents',
COMPRESSION => 'LZO', VERSIONS => '3', TTL => '2147483647', BLOCKSIZE =>
'65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}}
09/12/17 10:43:48 DEBUG client.HTable$ClientScanner: Creating scanner over
Genome starting at key ''
09/12/17 10:43:48 DEBUG client.HTable$ClientScanner: Advancing internal
scanner to startKey at ''
09/12/17 10:43:48 DEBUG client.HConnectionManager$TableServers: Cache hit
for row <> in tableName Genome: location server 10.10.6.244:42752, location
region name Genome,,1261073862801
NativeException: org.apache.hadoop.hbase.client.RetriesExhaustedException:
Trying to contact region server 10.10.6.244:42752 for region
Genome,,1261073862801, row '', but failed after 5 attempts.
Exceptions:
org.apache.hadoop.hbase.NotServingRegionException:
org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
at
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2309)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1896)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
org.apache.hadoop.hbase.NotServingRegionException:
org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
at
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2309)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1896)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
org.apache.hadoop.hbase.NotServingRegionException:
org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
at
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2309)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1896)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
org.apache.hadoop.hbase.NotServingRegionException:
org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
at
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2309)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1896)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
org.apache.hadoop.hbase.NotServingRegionException:
org.apache.hadoop.hbase.NotServingRegionException: Genome,,1261073862801
at
org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2309)
at
org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1896)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
from org/apache/hadoop/hbase/client/HConnectionManager.java:1002:in
`getRegionServerWithRetries'
from org/apache/hadoop/hbase/client/HTable.java:1931:in
`nextScanner'
from org/apache/hadoop/hbase/client/HTable.java:1851:in `initialize'
from org/apache/hadoop/hbase/client/HTable.java:372:in `getScanner'
from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
from java/lang/reflect/Method.java:597: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:44:in `call'
from org/jruby/runtime/callsite/CachingCallSite.java:273:in
`cacheAndCall'
from org/jruby/runtime/callsite/CachingCallSite.java:112:in `call'
from org/jruby/ast/CallOneArgNode.java:57:in `interpret'
from org/jruby/ast/LocalAsgnNode.java:123:in `interpret'
from org/jruby/ast/NewlineNode.java:104:in `interpret'
... 112 levels...
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb#start:-1:in
`call'
from org/jruby/internal/runtime/methods/DynamicMethod.java:226:in
`call'
from org/jruby/internal/runtime/methods/CompiledMethod.java:211:in
`call'
from org/jruby/internal/runtime/methods/CompiledMethod.java:71:in
`call'
from org/jruby/runtime/callsite/CachingCallSite.java:253:in
`cacheAndCall'
from org/jruby/runtime/callsite/CachingCallSite.java:72:in `call'
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:497:in
`__file__'
from
home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:-1:in
`load'
from org/jruby/Ruby.java:577:in `runScript'
from org/jruby/Ruby.java:480:in `runNormally'
from org/jruby/Ruby.java:354:in `runFromMain'
from org/jruby/Main.java:229:in `run'
from org/jruby/Main.java:110:in `run'
from org/jruby/Main.java:94:in `main'
from /home/xshu/tools/hadoop/hbase-0.20.2/bin/../bin/hirb.rb:410:in
`count'
On Thu, Dec 17, 2009 at 10:44 AM, Xueling Shu <xs...@systemsbiology.org>wrote:
> Hi there:
>
> I followed the tutorial and set up a standalone environment, but then
> experienced some problems.
>
> 1. Whenever I executed "start-hbase.sh", an exception will be thrown. The
> server can still be started. But if I know how to get rid of the exception
> that would be great.
>
> localhost: starting zookeeper, logging to
> /home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-zookeeper-carolina.out
> starting master, logging to
> /home/xshu/tools/hadoop/hbase-0.20.2/bin/../logs/hbase-xshu-master-carolina.out
> java.io.IOException:
> org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode =
> NoNode for /hbase/master
> at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddressOrThrow(ZooKeeperWrapper.java:332)
> at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readAddress(ZooKeeperWrapper.java:318)
> at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.readMasterAddress(ZooKeeperWrapper.java:250)
> at
> org.apache.hadoop.hbase.master.ZKMasterAddressWatcher.waitForMasterAddressAvailability(ZKMasterAddressWatcher.java:82)
> at
> org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:267)
> at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:254)
> at
> org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:94)
> at
> org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
> at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1214)
>
> 2. I created a table and populated some data. But whenever I tried to
> disable the table, the following exception is thrown:
>
> 09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers: Cache hit
> for row <> in tableName .META.: location server 10.10.6.244:42752,
> location region name .META.,,1
> 09/12/17 10:20:40 DEBUG client.HConnectionManager$TableServers:
> Rowscanned=1, rowsOffline=0
> 09/12/17 10:20:40 DEBUG client.HBaseAdmin: Sleep. Waiting for all regions
> to be disabled from Genome
> 09/12/17 10:20:44 DEBUG client.HBaseAdmin: Wake. Waiting for all regions to
> be disabled from Genome
> NativeException: org.apache.hadoop.hbase.RegionException: Retries
> exhausted, it took too long to wait for the table Genome to be disabled.
> from org/apache/hadoop/hbase/client/HBaseAdmin.java:411:in
> `disableTable'
> from org/apache/hadoop/hbase/client/HBaseAdmin.java:370:in
> `disableTable'
> from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
> from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
> from sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
> from java/lang/reflect/Method.java:597: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:44:in
> `call'
> from org/jruby/runtime/callsite/CachingCallSite.java:110:in `call'
> from org/jruby/ast/CallOneArgNode.java:57:in `interpret'
> from org/jruby/ast/NewlineNode.java:104:in `interpret'
> from org/jruby/ast/BlockNode.java:71:in `interpret'
> from
> org/jruby/internal/runtime/methods/InterpretedMethod.java:163:in `call'
> from org/jruby/internal/runtime/methods/DefaultMethod.java:144:in
> `call'
> from org/jruby/runtime/callsite/CachingCallSite.java:110:in `call'
> ... 106 levels...
> from
> home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb#start:-1:in
> `call'
> from org/jruby/internal/runtime/methods/DynamicMethod.java:226:in
> `call'
> from org/jruby/internal/runtime/methods/CompiledMethod.java:211:in
> `call'
> from org/jruby/internal/runtime/methods/CompiledMethod.java:71:in
> `call'
> from org/jruby/runtime/callsite/CachingCallSite.java:253:in
> `cacheAndCall'
> from org/jruby/runtime/callsite/CachingCallSite.java:72:in `call'
> from
> home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:497:in
> `__file__'
> from
> home/xshu/tools/hadoop/hbase_minus_0_dot_20_dot_2/bin/$_dot_dot_/bin/hirb.rb:-1:in
> `load'
> from org/jruby/Ruby.java:577:in `runScript'
> from org/jruby/Ruby.java:480:in `runNormally'
> from org/jruby/Ruby.java:354:in `runFromMain'
> from org/jruby/Main.java:229:in `run'
> from org/jruby/Main.java:110:in `run'
> from org/jruby/Main.java:94:in `main'
> from /home/xshu/tools/hadoop/hbase-0.20.2/bin/../bin/hirb.rb:350:in
> `disable'
>
> Thanks!
> Xueling
>
>