[
https://issues.apache.org/jira/browse/HBASE-3079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927311#action_12927311
]
stack commented on HBASE-3079:
------------------------------
When I go to count a disabled table I get:
{code}
hbase(main):012:0> count 'usertable'
ERROR: java.lang.reflect.UndeclaredThrowableException: null
Here is some help for this command:
Count the number of rows in a table. This operation may take a LONG
time (Run '$HADOOP_HOME/bin/hadoop jar hbase.jar rowcount' to run a
counting mapreduce job). Current count is shown every 1000 rows by
default. Count interval may be optionally specified. Scan caching
is enabled on count scans by default. Default cache size is 10 rows.
If your rows are small in size, you may want to increase this
parameter. Examples:
hbase> count 't1'
hbase> count 't1', INTERVAL => 100000
hbase> count 't1', CACHE => 1000
hbase> count 't1', INTERVAL => 10, CACHE => 1000
{code}
> Shell displaying uninformative exceptions
> -----------------------------------------
>
> Key: HBASE-3079
> URL: https://issues.apache.org/jira/browse/HBASE-3079
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.89.20100924
> Reporter: Jonathan Gray
> Fix For: 0.90.0
>
>
> The shell seems to hang longer than the normal client and then display
> uninformative messages when doing wrong things.
> For example, inserting into a non-existing family or reading from a disabled
> table. I believe in both these cases, HTable will throw informative
> exceptions like InvalidFamilyException and TableDisabledException (need to
> confirm exactly what it does).
> But in the shell, I get things like:
> Inserting to a family that does not exist:
> {noformat}
> ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Still had 1
> puts left after retrying 7 times.
> {noformat}
> Reading from a disabled table (this takes a long time before anything is
> displayed):
> {noformat}
> ERROR: org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to
> contact region server 10.0.0.4:62505 for region
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a., row '', but failed
> after 7 attempts.
> Exceptions:
> org.apache.hadoop.hbase.NotServingRegionException:
> org.apache.hadoop.hbase.NotServingRegionException:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2221)
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1812)
> at sun.reflect.GeneratedMethodAccessor4.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:557)
> at
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1007)
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> org.apache.hadoop.hbase.client.RegionOfflineException: region offline:
> sample,,1286217181143.1459f8fdde55752fd91022fb1153d39a.
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.