hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-11618) CorruptedSnapshotException when running ExportSnapshot
Date Wed, 30 Jul 2014 18:40:40 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Matteo Bertozzi resolved HBASE-11618.

    Resolution: Invalid

please post on the user@ list.
the first problem is that you have some setup issue,
you should be able to use $ hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot without
any extra class path to specify.
otherwise you end up like in this case with the configuration missing and you are using the
default /tmp/hbase location instead of your hbase.rootdir

> CorruptedSnapshotException when running ExportSnapshot
> ------------------------------------------------------
>                 Key: HBASE-11618
>                 URL: https://issues.apache.org/jira/browse/HBASE-11618
>             Project: HBase
>          Issue Type: Bug
>         Environment: hadoop jar
> hbase jar hbase-common-
> yarn
> CentOS release 6.5 (Final)
>            Reporter: William Watson
> After much digging, I finally figured out how to get the classpaths just right to run
the ExportSnapshot command: 
> {code}
> /usr/bin/hbase -classpath '/usr/lib/hbase/lib/*:/usr/lib/hadoop/client/*' org.apache.hadoop.hbase.snapshot.ExportSnapshot
-snapshot 'myTable_hbaseSnapshot_20140730' -copy-to hdfs:// -mappers 4
> {code}
> only to run into the following error: 
> {code}
> Exception in thread "main" org.apache.hadoop.hbase.snapshot.CorruptedSnapshotException:
Couldn't read snapshot info from:hdfs://ip-10-0-1-31.ec2.internal:8020/tmp/hbase-hbase/hbase/.hbase-snapshot/myTable_hbaseSnapshot_20140730/.snapshotinfo
> {code}

This message was sent by Atlassian JIRA

View raw message