HBASE-18746 Throw exception with job.getStatus().getFailureInfo() when ExportSnapshot fails
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
0e01544838
commit
27db1298f7
|
@ -826,9 +826,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool {
|
||||||
|
|
||||||
// Run the MR Job
|
// Run the MR Job
|
||||||
if (!job.waitForCompletion(true)) {
|
if (!job.waitForCompletion(true)) {
|
||||||
// TODO: Replace the fixed string with job.getStatus().getFailureInfo()
|
throw new ExportSnapshotException(job.getStatus().getFailureInfo());
|
||||||
// when it will be available on all the supported versions.
|
|
||||||
throw new ExportSnapshotException("Copy Files Map-Reduce Job failed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue