public class YarnJobValidationTool
extends java.lang.Object
Command-line tool for validating the status of a Yarn job.
It checks the job has been successfully submitted to the Yarn cluster, the status of
the application attempt is running and the running container count matches the expectation.
It also supports an optional MetricsValidator plugin through arguments so job metrics can
be validated too using JMX. This tool can be used, for example, as an automated validation
step after starting a job.
When running this tool, please provide the configuration URI of job. For example:
deploy/samza/bin/validate-yarn-job.sh --config job.config.loader.factory=org.apache.samza.config.loaders.PropertiesConfigLoaderFactory --config job.config.loader.properties.path=$PWD/deploy/samza/config/wikipedia-feed.properties [--metrics-validator=com.foo.bar.SomeMetricsValidator]
The tool prints out the validation result in each step and throws an exception when the
validation fails.