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

Srikanth Sundarrajan commented on FALCON-752:
---------------------------------------------

{quote}
have an issue with logsDir being inside the appVersion specific stagingDirectory
{quote}

logs is being created under buildPath.getParent(), so no issues on that front.
{code}
    private void createLogsDir(Cluster cluster, Path buildPath) throws 
FalconException {
        try {
            FileSystem fs = 
HadoopClientFactory.get().createFileSystem(buildPath.toUri(),
                ClusterHelper.getConfiguration(cluster));
            Path logsDir = new Path(buildPath.getParent(), "logs");
            if (!fs.mkdirs(logsDir)) {
                throw new FalconException("Failed to create " + logsDir);
            }

            // logs are copied with in oozie as the user in Post Processing and 
hence 777 permissions
            FsPermission permission = new FsPermission(FsAction.ALL, 
FsAction.ALL, FsAction.ALL);
            fs.setPermission(logsDir, permission);
        } catch (IOException e) {
            throw new FalconException(e);
        }
    }
{code}

> Override the permissions for staging and working dirs with 755
> --------------------------------------------------------------
>
>                 Key: FALCON-752
>                 URL: https://issues.apache.org/jira/browse/FALCON-752
>             Project: Falcon
>          Issue Type: Sub-task
>          Components: oozie
>    Affects Versions: 0.6
>            Reporter: Venkatesh Seetharam
>            Assignee: Venkatesh Seetharam
>             Fix For: 0.6
>
>         Attachments: FALCON-752.patch
>
>
> This would only implement phase-1



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

Reply via email to