You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Jerry He <je...@gmail.com> on 2013/04/15 22:52:41 UTC

HBase snapshot: 'Can't find hfile exception' when verifying snapshot

I was getting this exception when running a snapshot.  The table is online
and being loaded by another process during the snapshot.
Is this exception expected sometimes and are ok in such case?   The region
moved (ok)? or the hfile got deleted (bug)?

 2013-03-29 21:11:00,716 ERROR
org.apache.hadoop.hbase.master.snapshot.TakeSnapshotHandler: Got exception
taking snapshot
2013-03-29 21:11:00,739 ERROR
org.apache.hadoop.hbase.errorhandling.ForeignExceptionSnare:
generic-error-snare Got an error: Failed due to exception:Can't find hfile:
hdfs://
hdtest-ha-001.svl.ibm.com:9000/hbase/.snapshot/.tmp/bak_1364616652598/f1a15e6a80231ee146091f804629a82f/family/167461869a9146589fc5712538f80867
in the real (hdfs://
hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family)
or archive (hdfs://
hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family)
directory for the primary table., info:[name: "bak_1364616652598"

Re: HBase snapshot: 'Can't find hfile exception' when verifying snapshot

Posted by Ted Yu <yu...@gmail.com>.
Can you clarify which HBase release was being used ?

On Mon, Apr 15, 2013 at 1:52 PM, Jerry He <je...@gmail.com> wrote:

> I was getting this exception when running a snapshot.  The table is online
> and being loaded by another process during the snapshot.
> Is this exception expected sometimes and are ok in such case?   The region
> moved (ok)? or the hfile got deleted (bug)?
>
>  2013-03-29 21:11:00,716 ERROR
> org.apache.hadoop.hbase.master.snapshot.TakeSnapshotHandler: Got exception
> taking snapshot
> 2013-03-29 21:11:00,739 ERROR
> org.apache.hadoop.hbase.errorhandling.ForeignExceptionSnare:
> generic-error-snare Got an error: Failed due to exception:Can't find hfile:
> hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.snapshot/.tmp/bak_1364616652598/f1a15e6a80231ee146091f804629a82f/family/167461869a9146589fc5712538f80867
> in the real (hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family
> )
> or archive (hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family
> )
> directory for the primary table., info:[name: "bak_1364616652598"
>

Re: HBase snapshot: 'Can't find hfile exception' when verifying snapshot

Posted by Jonathan Hsieh <jo...@cloudera.com>.
The online snapshot implementation in 0.94 does not guarantee that it will
succeed -- there are some unavoidable race conditions and the operation
will exit with an error message such as the one you posted.

The 0.95 versions should be more robust since table locks were introduced.

Jon.

On Mon, Apr 15, 2013 at 1:52 PM, Jerry He <je...@gmail.com> wrote:

> I was getting this exception when running a snapshot.  The table is online
> and being loaded by another process during the snapshot.
> Is this exception expected sometimes and are ok in such case?   The region
> moved (ok)? or the hfile got deleted (bug)?
>
>  2013-03-29 21:11:00,716 ERROR
> org.apache.hadoop.hbase.master.snapshot.TakeSnapshotHandler: Got exception
> taking snapshot
> 2013-03-29 21:11:00,739 ERROR
> org.apache.hadoop.hbase.errorhandling.ForeignExceptionSnare:
> generic-error-snare Got an error: Failed due to exception:Can't find hfile:
> hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.snapshot/.tmp/bak_1364616652598/f1a15e6a80231ee146091f804629a82f/family/167461869a9146589fc5712538f80867
> in the real (hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family
> )
> or archive (hdfs://
>
> hdtest-ha-001.svl.ibm.com:9000/hbase/.archive/testF/f1a15e6a80231ee146091f804629a82f/family
> )
> directory for the primary table., info:[name: "bak_1364616652598"
>



-- 
// Jonathan Hsieh (shay)
// Software Engineer, Cloudera
// jon@cloudera.com