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

Takeover script configs results in conflict message that look wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None

    Description

      Attaching the zip file with configs and conflicts.

      • The conflicting configs seem to have a lot of duplicate info
        mapred-site :: dfs.datanode.du.reserved
      • Unable to handle empty config files:
        Had to hand edit and add try / catch at :

      > yaml.load(file).iteritems()

      > parsed_configurations_from_path, parsed_properties_attributes =
      parser.read_data_to_map(path)

      Traceback (most recent call last):
      File "./takeover_config_merge.py", line 393, in <module>
      sys.exit(main())
      File "./takeover_config_merge.py", line 389, in main
      return configMerge.perform_merge()
      File "./takeover_config_merge.py", line 279, in perform_merge
      parsed_configurations_from_path, parsed_properties_attributes = parser.read_data_to_map(path)
      File "./takeover_config_merge.py", line 86, in read_data_to_map
      for name, value in yaml.load(file).iteritems():
      AttributeError: 'NoneType' object has no attribute 'iteritems'

      Instruction

      ./takeover_config_merge.py -o blueprint -i files

      Attachments

        1. AMBARI-16451.patch
          6 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: