[
https://issues.apache.org/jira/browse/BLUR-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485361#comment-13485361
]
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 BlurClusterTest.java now looks
like following
LocalFileSystem localFS = FileSystem.getLocal(new Configuration());
File testDirectory = new File ("/tmp/BlurClusterTest");
testDirectory.mkdirs();
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("dfs.datanode.data.dir.perm", dirPermissionNum);
testDirectory.delete();
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: https://issues.apache.org/jira/browse/BLUR-40
> 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: http://www.atlassian.com/software/jira