Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
MetricsSnapshotReporterFactory requires task.class property in the config, but that property is not set in the fluent API. The result is the following error:
Exception in thread "main" org.apache.samza.SamzaException: No task class defined for config. at org.apache.samza.metrics.reporter.MetricsSnapshotReporterFactory$$anonfun$3.apply(MetricsSnapshotReporterFactory.scala:52) at org.apache.samza.metrics.reporter.MetricsSnapshotReporterFactory$$anonfun$3.apply(MetricsSnapshotReporterFactory.scala:52) at scala.Option.getOrElse(Option.scala:121) at org.apache.samza.metrics.reporter.MetricsSnapshotReporterFactory.getMetricsReporter(MetricsSnapshotReporterFactory.scala:52) at org.apache.samza.util.MetricsReporterLoader.getMetricsReporters(MetricsReporterLoader.java:47) at org.apache.samza.job.yarn.SamzaAppMasterMetrics.<init>(SamzaAppMasterMetrics.scala:46) at org.apache.samza.job.yarn.YarnClusterResourceManager.<init>(YarnClusterResourceManager.java:133) at org.apache.samza.job.yarn.YarnResourceManagerFactory.getClusterResourceManager(YarnResourceManagerFactory.java:41) at org.apache.samza.clustermanager.ContainerProcessManager.<init>(ContainerProcessManager.java:111) at org.apache.samza.clustermanager.ClusterBasedJobCoordinator.<init>(ClusterBasedJobCoordinator.java:128) at org.apache.samza.clustermanager.ClusterBasedJobCoordinator.main(ClusterBasedJobCoordinator.java:221)
Attachments
Issue Links
- is duplicated by
-
SAMZA-1328 MetricsReporterFactory requires app.class even though its optional
- Resolved
- links to