incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gagan Deep Juneja (JIRA)" <>
Subject [jira] [Commented] (BLUR-40) Test cases failing in BlurClusterTest due to invalid directory permissions
Date Sat, 27 Oct 2012 05:59:12 GMT


Gagan Deep Juneja commented on BLUR-40:

I tried workaround for this issue. I am not sure how much optimal/feasible this solution is?

I have created one test directory and get permission of that directory and set permission
based on that value. The code in  now looks like following
    LocalFileSystem localFS = FileSystem.getLocal(new Configuration());
    File testDirectory = new File ("/tmp/BlurClusterTest");
    Path directory = new Path (testDirectory.getPath());
    FsPermission dirPermissions = localFS.getFileStatus(directory).getPermission();
    String dirPermissionNum = dirPermissions.getUserAction().ordinal() + "" + dirPermissions.getGroupAction().ordinal()+
"" +dirPermissions.getOtherAction().ordinal();
    System.setProperty("", dirPermissionNum);

What do you think will this solution addresses our issue? Which version of java we are using?
because java7 provides support to get file permissions and that case we dont need the help
of hadoop.

> Test cases failing in BlurClusterTest due to invalid directory permissions
> --------------------------------------------------------------------------
>                 Key: BLUR-40
>                 URL:
>             Project: Apache Blur
>          Issue Type: Bug
>            Reporter: Gagan Deep Juneja
>         Attachments: 0001-BLUR-ID-40-fix-failing-tests.patch

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message