shanthoosh commented on a change in pull request #1079: SAMZA-2250: Support
large job models in standalone.
URL: https://github.com/apache/samza/pull/1079#discussion_r296058634
##########
File path:
samza-core/src/main/java/org/apache/samza/job/model/JobModelUtil.java
##########
@@ -57,6 +67,42 @@
return taskToSSPs;
}
+
+ /**
+ * Converts the JobModel into a byte array into {@link MetadataStore}.
+ * @param jobModel the job model to store into {@link MetadataStore}.
+ * @param jobModelVersion the job model version.
+ * @param metadataStore the metadata store.
+ */
+ public static void writeJobModel(JobModel jobModel, String jobModelVersion,
MetadataStore metadataStore) {
Review comment:
I think this is not specific to standalone. It will be applicable to YARN as
well when it has support for versioning.
I'm using these util functions in standalone integration test-cases to
validate the `JobModel` published by a processors group.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services