Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1255

init-hcfs.json needs to encode privileges as strings, not numbers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.7.0
    • 0.8.0
    • tests
    • None

    Description

      JSON doesn't support octal numbers, so to encode privileges, its best to encode the privilege numbers as strings:

      "/tmp",0777
      

      Needs to be

      "/tmp","0777"
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jayunit100 jay vyas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: