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

JournalNode may fail to start due to unreadable config file

    XMLWordPrintableJSON

Details

    Description

      During startup, JournalNode reads config files that belong to YARN, not HDFS (eg. yarn-site.xml), if they are present in the Hadoop config dir.

      Ambari's File() provider creates files at the final location, then sets metadata (ownership and permissions). This makes the file visible to other processes with possibly the wrong metadata.

      If agent-side parallel execution is enabled, JournalNode may be started concurrently with some YARN component. JournalNode may encounter a config file that it cannot read, because the file's permissions and owner are still 640 and root, respectively, which causes it to shutdown:

      ERROR conf.Configuration (Configuration.java:loadResource(2999)) - error parsing conf yarn-site.xml
      java.io.FileNotFoundException: /etc/hadoop/conf/yarn-site.xml (Permission denied)
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h