Removing unnecessary reporting tasks

You must remove the unnecessary reporting tasks from the flow.xml.gz file.

You can remove the AmbariReportingTask used by your HDF NiFi cluster, as it is not used by Cloudera Manager.

  1. Unzip flow.xml.gz.
  2. Edit the resulting flow.xml file by removing the reporting task:
    
    <reportingTask>
          <id>3b80ba0f-a6c0-48db-b721-4dbc04cef28e</id>
          <name>AmbariReportingTask</name>
          <comment/>
       <class>org.apache.nifi.reporting.ambari.AmbariReportingTask</class>
          <bundle>
            <group>org.apache.nifi</group>
            <artifact>nifi-ambari-nar</artifact>
            <version>1.11.4.3.5.1.0-17</version>
          </bundle>
          <schedulingPeriod>1 mins</schedulingPeriod>
          <scheduledState>RUNNING</scheduledState>
          <schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
          <property>
            <name>Metrics Collector URL</name>
            <value>${ambari.metrics.collector.url}</value>
          </property>
          <property>
            <name>Application ID</name>
            <value>${ambari.application.id}</value>
          </property>
          <property>
            <name>Hostname</name>
            <value>${hostname(true)}</value>
          </property>
          <property>
            <name>Process Group ID</name>
          </property>
        </reportingTask>
    
  3. Save your changes.
  4. Zip the flow.xml file:
    gzip flow.xml

When you have completed the steps to remove unnecessary reporting tasks, proceed by updating the Registry Client.