Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi fails to start on HDF 3.3.0 upgrade


Nifi fails to start on HDF 3.3.0 upgrade

New Contributor

While running express upgrade from HDF 3.1.0 to 3.3.0 in Ambari 2.7.3, Nifi fails to restart with the below log. Even after downgrading the upgrade to 3.1.0 Nifi still fails to restart with the same error.


Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 304, in <module>
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 352, in execute
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/", line 1006, in restart
    self.start(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 143, in start
    self.configure(env, is_starting = True)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 111, in configure
    self.write_configurations(params, is_starting)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 231, in write_configurations
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 295, in write_files
    boostrap_notification_content=config_utils.append_xml_content(params.nifi_boostrap_notification_content, params.nifi_boostrap_notification_dict)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/", line 27, in append_xml_content
    original_config_root = ElementTree.fromstring(original_evaluated_config)
  File "/usr/lib64/python2.7/xml/etree/", line 1301, in XML
  File "/usr/lib64/python2.7/xml/etree/", line 1643, in feed
  File "/usr/lib64/python2.7/xml/etree/", line 1507, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 27, column 29



Don't have an account?
Coming from Hortonworks? Activate your account here