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

yarn params not found in Ambaripreupload.py

    XMLWordPrintableJSON

    Details

      Description

      Running Ambari preupload script is throwing errors because of invalid yarn parameter references: 

       

      [root@c7301 ~]# /var/lib/ambari-server/resources/scripts/Ambaripreupload.py
      2018-07-09 12:28:04,121 - call['/usr/bin/hdp-select status hadoop-mapreduce-historyserver > /tmp/tmpimy0Rf'] {}
      2018-07-09 12:28:04,149 - call returned (0, '')
      Returning fs.defaultFS -> hdfs://c7301.ambari.apache.org:8020
      2018-07-09 12:28:04,154 - Creating /usr/hdp/3.0.0.0-1621/hadoop-yarn/lib/service-dep.tar.gz
      Traceback (most recent call last):
      File "/var/lib/ambari-server/resources/scripts/Ambaripreupload.py", line 360, in <module>
      create_yarn_service_tarball()
      File "/var/lib/ambari-server/resources/scripts/Ambaripreupload.py", line 317, in create_yarn_service_tarball
      folders = [yarn_home_dir, yarn_lib_dir, hdfs_home_dir, hdfs_lib_dir, hadoop_home_dir, hadoop_lib_dir]
      NameError: global name 'yarn_home_dir' is not defined

       

        Attachments

          Activity

            People

            • Assignee:
              gboros Gabor Boros
              Reporter:
              gboros Gabor Boros
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 20m
                3h 20m