You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "jay vyas (JIRA)" <ji...@apache.org> on 2014/03/15 01:10:42 UTC
[jira] [Created] (BIGTOP-1255) init-hcfs.json needs to encode
privileges as strings, not numbers.
jay vyas created BIGTOP-1255:
--------------------------------
Summary: init-hcfs.json needs to encode privileges as strings, not numbers.
Key: BIGTOP-1255
URL: https://issues.apache.org/jira/browse/BIGTOP-1255
Project: Bigtop
Issue Type: Bug
Reporter: jay vyas
JSON doesn't support octal numbers, so to encode privileges, its best to encode the privilege numbers as strings:
{noformat}
"/tmp",0777
{noformat}
Needs to be
{noformat}
"/tmp","0777"
{noformat}
Then, we can easily use Short.decode(..) to read in octal encoded numbers. The short value can then be passed properly to the constructor of FsPermission.
This is fixed in https://issues.apache.org/jira/secure/attachment/12634808/BIGTOP-952.patch , but just wanted to create a separate placeholder JIRA while BIGTOP-952 is still pending.
--
This message was sent by Atlassian JIRA
(v6.2#6252)