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

While restarting node manager through Ambari, the yarn.local.dir permission got change from 755 to 775, and the other way around, causing long restarting time for nodemanager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.1.1
    • 2.4.0
    • ambari-server
    • None

    Description

      Seems that Ambari changes the directory to 775, then change it back to 755:

      2016-03-14 13:03:33,638 - Directory['/opt/hd/db/data/01/yarn/local'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,638 - Changing permission for /opt/hd/db/data/01/yarn/local from 755 to 775 
      2016-03-14 13:03:33,655 - Directory['/opt/hd/db/data/02/yarn/local'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,656 - Changing permission for /opt/hd/db/data/02/yarn/local from 755 to 775 
      2016-03-14 13:03:33,674 - Directory['/opt/hd/db/data/03/yarn/local'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,674 - Changing permission for /opt/hd/db/data/03/yarn/local from 755 to 775 
      2016-03-14 13:03:33,689 - Directory['/opt/hd/db/data/04/yarn/local'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,689 - Changing permission for /opt/hd/db/data/04/yarn/local from 755 to 775 
      2016-03-14 13:03:33,699 - Directory['/opt/hd/db/data/05/yarn/local'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,699 - Changing permission for /opt/hd/db/data/05/yarn/local from 755 to 775 
      2016-03-14 13:03:33,709 - Directory['/opt/hd/db/data/01/yarn/log'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,709 - Directory['/opt/hd/db/data/02/yarn/log'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,710 - Directory['/opt/hd/db/data/03/yarn/log'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,710 - Directory['/opt/hd/db/data/04/yarn/log'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,711 - Directory['/opt/hd/db/data/05/yarn/log'] {'group': 'hadoop', 'recursive': True, 'cd_access': 'a', 'ignore_failures': True, 'mode': 0775, 'owner': 'yarn'} 
      2016-03-14 13:03:33,712 - Execute[('chmod', '-R', '755', '/opt/hd/db/data/01/yarn/local', '/opt/hd/db/data/02/yarn/local', '/opt/hd/db/data/03/yarn/local', '/opt/hd/db/data/04/yarn/local'
      
      

      This seems to cause long restart time for nodemanager.

      Attachments

        1. AMBARI-16765.patch
          2 kB
          Papirkovskyy Myroslav

        Issue Links

          Activity

            People

              mpapirkovskyy Papirkovskyy Myroslav
              mpapirkovskyy Papirkovskyy Myroslav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: