Question about the behavior of hbck

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Question about the behavior of hbck

jeff saremi
I'm running hbck like the following:

bin\hbase.cmd hbck -repair


Then I get this exception printed out to the console. However the program does not exit or seem to be doing anything else. When I kill it using CTRL-C, I'm not able to run subsequent hbck commands unless I go and clear the locks in hdfs.
Is this exptected?


Exception in thread "main" java.io.IOException: 1 region(s) could not be checked or repaired.  See logs for detail.
        at org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixConsistency(HBaseFsck.java:1846)
        at org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(HBaseFsck.java:672)
        at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:694)
        at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:4732)
        at org.apache.hadoop.hbase.util.HBaseFsck$HBaseFsckTool.run(HBaseFsck.java:4531)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
        at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:4519)


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Question about the behavior of hbck

Ted Yu-3
bq. See logs for detail

Did you get clue from hbck log ?

Which hbase release are you using ?

Please check out this JIRA:

HBASE-16008 A robust way deal with early termination of HBCK

Cheers

On Wed, May 31, 2017 at 3:00 PM, jeff saremi <[hidden email]> wrote:

> I'm running hbck like the following:
>
> bin\hbase.cmd hbck -repair
>
>
> Then I get this exception printed out to the console. However the program
> does not exit or seem to be doing anything else. When I kill it using
> CTRL-C, I'm not able to run subsequent hbck commands unless I go and clear
> the locks in hdfs.
> Is this exptected?
>
>
> Exception in thread "main" java.io.IOException: 1 region(s) could not be
> checked or repaired.  See logs for detail.
>         at org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixConsistency(
> HBaseFsck.java:1846)
>         at org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(
> HBaseFsck.java:672)
>         at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(
> HBaseFsck.java:694)
>         at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:
> 4732)
>         at org.apache.hadoop.hbase.util.HBaseFsck$HBaseFsckTool.run(
> HBaseFsck.java:4531)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
>         at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:
> 4519)
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Question about the behavior of hbck

jeff saremi
Ted, thanks a lot for the hints. I'll have to go through the log and check the Jira item as well. We're using release 1.2.5


________________________________
From: Ted Yu <[hidden email]>
Sent: Wednesday, May 31, 2017 3:06:11 PM
To: [hidden email]
Subject: Re: Question about the behavior of hbck

bq. See logs for detail

Did you get clue from hbck log ?

Which hbase release are you using ?

Please check out this JIRA:

HBASE-16008 A robust way deal with early termination of HBCK

Cheers

On Wed, May 31, 2017 at 3:00 PM, jeff saremi <[hidden email]> wrote:

> I'm running hbck like the following:
>
> bin\hbase.cmd hbck -repair
>
>
> Then I get this exception printed out to the console. However the program
> does not exit or seem to be doing anything else. When I kill it using
> CTRL-C, I'm not able to run subsequent hbck commands unless I go and clear
> the locks in hdfs.
> Is this exptected?
>
>
> Exception in thread "main" java.io.IOException: 1 region(s) could not be
> checked or repaired.  See logs for detail.
>         at org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixConsistency(
> HBaseFsck.java:1846)
>         at org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(
> HBaseFsck.java:672)
>         at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(
> HBaseFsck.java:694)
>         at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:
> 4732)
>         at org.apache.hadoop.hbase.util.HBaseFsck$HBaseFsckTool.run(
> HBaseFsck.java:4531)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
>         at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:
> 4519)
>
>
>
Loading...