[
https://issues.apache.org/jira/browse/HBASE-20579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Elser reopened HBASE-20579:
--------------------------------
If the chown/chgrp fail, the real exception is now not propagated for the user
to see.
{code:java}
+ try {
+ fs.setOwner(path, filesUser, filesGroup);
+ } catch (IOException e) {
+ throw new RuntimeException(
+ "set owner for file " + path + " to " + filesUser + ":" +
filesGroup + " failed");
}{code}
{code:java}
+ try {
+ fs.setPermission(path, perm);
+ } catch (IOException e) {
+ throw new RuntimeException(
+ "set permission for file " + path + " to " + filesMode + "
failed");
+ }{code}
Need to put an addendum on this..
> Improve snapshot manifest copy in ExportSnapshot
> ------------------------------------------------
>
> Key: HBASE-20579
> URL: https://issues.apache.org/jira/browse/HBASE-20579
> Project: HBase
> Issue Type: Improvement
> Components: mapreduce
> Affects Versions: 1.4.0, 1.5.0, 2.0.0
> Reporter: Jingyun Tian
> Assignee: Jingyun Tian
> Priority: Minor
> Fix For: 3.0.0, 2.1.0
>
> Attachments: HBASE-20579.master.001.patch,
> HBASE-20579.master.002.patch
>
>
> ExportSnapshot need to copy snapshot manifest to destination cluster first,
> then setOwner and setPermission for those paths. But it's done with one
> thread, which lead to a long time to submit the job if your snapshot is big.
> I tried to make them processing in parallel, which can reduce the total time
> of submitting dramatically.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)