You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matteo Bertozzi (JIRA)" <ji...@apache.org> on 2016/10/25 02:50:58 UTC

[jira] [Commented] (HBASE-16939) ExportSnapshot: set owner and permission on right directory

    [ https://issues.apache.org/jira/browse/HBASE-16939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15603974#comment-15603974 ] 

Matteo Bertozzi commented on HBASE-16939:
-----------------------------------------

if the .hbase-snapshot dir does not exist, and we are exporting to another cluster will the cluster be able to take snapshots since the dir permission is set to the export user and not to the hbase user?

> ExportSnapshot: set owner and permission on right directory
> -----------------------------------------------------------
>
>                 Key: HBASE-16939
>                 URL: https://issues.apache.org/jira/browse/HBASE-16939
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>            Priority: Minor
>         Attachments: HBASE-16939.patch
>
>
> {code}
> FileUtil.copy(inputFs, snapshotDir, outputFs, initialOutputSnapshotDir, false, false, conf);
>       if (filesUser != null || filesGroup != null) {
>         setOwner(outputFs, snapshotTmpDir, filesUser, filesGroup, true);
>       }
>       if (filesMode > 0) {
>         setPermission(outputFs, snapshotTmpDir, (short)filesMode, true);
>       }
> {code}
> It copy snapshot manifest to initialOutputSnapshotDir, but it set owner on snapshotTmpDir. They are different directory when skipTmp is true.
> Another problem is new cluster doesn't have .hbase-snapshot directory. So after export snapshot, it should set owner on .hbase-snapshot directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)