Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21896

Ambari should honor permissions specified for dfs.datanode.data.dir.perm when creating datanode dir's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.1
    • 2.6.0
    • ambari-server
    • None
    • Ambari 2.5.1

    Description

      Give this:
      <property>
      <name>dfs.datanode.data.dir.perm</name>
      <value>750</value>

      Ambari reports as changing permission from 750 to 755 on the data dirs:

      2017-09-01 16:39:28,877 - Forcefully ensuring existence and permissions of the directory: /hadoop01/data
      2017-09-01 16:39:28,878 - Directory['/hadoop01/data']

      {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'ignore_failures': True, 'mode': 0755, 'owner': 'hdfs'}


      2017-09-01 16:39:28,878 - Changing permission for /hadoop01/data from 750 to 755
      2017-09-01 16:39:28,879 - Mount point for directory /hadoop02/data is /hadoop02
      2017-09-01 16:39:28,880 - Forcefully ensuring existence and permissions of the directory: /hadoop02/data
      2017-09-01 16:39:28,880 - Directory['/hadoop02/data']

      {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'ignore_failures': True, 'mode': 0755, 'owner': 'hdfs'}


      2017-09-01 16:39:28,880 - Changing permission for /hadoop02/data from 750 to 755
      2017-09-01 16:39:28,881 - Mount point for directory /hadoop03/data is /hadoop03
      2017-09-01 16:39:28,881 - Forcefully ensuring existence and permissions of the directory: /hadoop03/data
      2017-09-01 16:39:28,882 - Directory['/hadoop03/data']

      {'group': 'hadoop', 'cd_access': 'a', 'create_parents': True, 'ignore_failures': True, 'mode': 0755, 'owner': 'hdfs'}


      2017-09-01 16:39:28,882 - Changing permission for /hadoop03/data from 750 to 755
      2017-09-01 16:39:28,882 - Mount point for directory /hadoop04/data is /hadoop04

      Attachments

        1. AMBARI-21896.patch
          3 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              matrix Sanjeev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: