From 29503707ef026c13605b27e1f1f54cce6294a96f Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Tue, 14 Feb 2023 15:32:02 -0500 Subject: [PATCH] NIFI-10896 - Deprecate Ambari Reporting Task This closes #6951 Signed-off-by: David Handermann --- .../org/apache/nifi/reporting/ambari/AmbariReportingTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nifi-nar-bundles/nifi-ambari-bundle/nifi-ambari-reporting-task/src/main/java/org/apache/nifi/reporting/ambari/AmbariReportingTask.java b/nifi-nar-bundles/nifi-ambari-bundle/nifi-ambari-reporting-task/src/main/java/org/apache/nifi/reporting/ambari/AmbariReportingTask.java index 886e8913b3..fd8d243f10 100644 --- a/nifi-nar-bundles/nifi-ambari-bundle/nifi-ambari-reporting-task/src/main/java/org/apache/nifi/reporting/ambari/AmbariReportingTask.java +++ b/nifi-nar-bundles/nifi-ambari-bundle/nifi-ambari-reporting-task/src/main/java/org/apache/nifi/reporting/ambari/AmbariReportingTask.java @@ -18,6 +18,7 @@ package org.apache.nifi.reporting.ambari; import org.apache.nifi.annotation.configuration.DefaultSchedule; import org.apache.nifi.annotation.documentation.CapabilityDescription; +import org.apache.nifi.annotation.documentation.DeprecationNotice; import org.apache.nifi.annotation.documentation.Tags; import org.apache.nifi.annotation.lifecycle.OnScheduled; import org.apache.nifi.components.PropertyDescriptor; @@ -54,6 +55,7 @@ import java.util.concurrent.TimeUnit; "works, this reporting task should be scheduled to run every 60 seconds. Each iteration it will send the metrics " + "from the previous iteration, and calculate the current metrics to be sent on next iteration. Scheduling this reporting " + "task at a frequency other than 60 seconds may produce unexpected results.") +@DeprecationNotice(reason = "This reporting task is deprecated and will be removed in NiFi 2.x.") @DefaultSchedule(strategy = SchedulingStrategy.TIMER_DRIVEN, period = "1 min") public class AmbariReportingTask extends AbstractReportingTask {