[
https://issues.apache.org/jira/browse/ACCUMULO-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497296#comment-13497296
]
Keith Turner commented on ACCUMULO-708:
---------------------------------------
I modified the commented out code that was trying to set the persmissions and I
think I have that working. The existing code was dealing with base 10 numbers
instead of base 8. In java prefixing a number with 0 makes it base 8, so it
needs to be 0777 instead of 777. Also need to format the result as base 8
instead of base 10. Could have changed Intereger.toString(newPermission) to
Integer.toString(newPermission, 8) but I used string.format instead.
{code:java}
//HDFS-1560
//Need to set permission to 777 xor umask
FsPermission fsp = FsPermission.getUMask(conf);
short umask = fsp.toShort();
// leading zero makes java interpret as base 8
int newPermission = 0777 ^ umask;
conf.set("dfs.datanode.data.dir.perm", String.format("%03o",
newPermission));
{code}
> Modify ClassLoader to support different applications / multi-tenancy
> --------------------------------------------------------------------
>
> Key: ACCUMULO-708
> URL: https://issues.apache.org/jira/browse/ACCUMULO-708
> Project: Accumulo
> Issue Type: Improvement
> Components: start
> Reporter: Dave Marion
> Assignee: Dave Marion
> Labels: classloader
> Fix For: 1.5.0
>
> Attachments: ACCUMULO-708-1.patch
>
> Original Estimate: 24h
> Time Spent: 33h
> Remaining Estimate: 0h
>
> I'd like to expand the current classloader to support loading classes from
> HDFS and different application contexts. I'll be modifying the ticket as the
> idea matures.
--
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