Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-66

MetricsSnapshotReporterFactory is specifying class instead of serde in getSerde call

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • metrics
    • None

    Description

      Was seeing the following stack trace when trying to use the metrics reporter:

      Exception in thread "main" java.lang.RuntimeException: No schema registry defined for com.linkedin.samza.serializers.SchemaRegistrySerdeFactory
      	at com.linkedin.samza.serializers.SchemaRegistrySerdeFactory.getSerde(SchemaRegistrySerde.scala:45)
      	at org.apache.samza.metrics.reporter.MetricsSnapshotReporterFactory.getMetricsReporter(MetricsSnapshotReporterFactory.scala:101)
      	at org.apache.samza.job.yarn.SamzaAppMasterMetrics$$anonfun$9.apply(SamzaAppMasterMetrics.scala:63)
      	at org.apache.samza.job.yarn.SamzaAppMasterMetrics$$anonfun$9.apply(SamzaAppMasterMetrics.scala:55)
      	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
      	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
      	at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
      	at scala.collection.immutable.List.foreach(List.scala:45)
      	at scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
      	at scala.collection.immutable.List.map(List.scala:45)
      	at org.apache.samza.job.yarn.SamzaAppMasterMetrics.<init>(SamzaAppMasterMetrics.scala:55)
      	at org.apache.samza.job.yarn.SamzaAppMaster$.main(SamzaAppMaster.scala:76)
      	at org.apache.samza.job.yarn.SamzaAppMaster.main(SamzaAppMaster.scala)
      

      This error is triggered because it appears that the metrics reporter is calling getSerde with the class name instead of the serde name.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            criccomini Chris Riccomini
            criccomini Chris Riccomini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment