public interface CustomJobEndNotifier
MRJobConfig.MR_JOB_END_NOTIFICATION_CUSTOM_NOTIFIER_CLASS
property
in the map-reduce Job configuration you can have your own
notification mechanism. For now this still only works with HTTP/HTTPS URLs,
but by implementing this class you can choose how you want to make the
notification itself. For example you can choose to use a custom
HTTP library, or do a delegation token authentication, maybe set a
custom SSL context on the connection, etc. This means you still have to set
the MRJobConfig.MR_JOB_END_NOTIFICATION_URL
property
in the Job's conf.Modifier and Type | Method and Description |
---|---|
boolean |
notifyOnce(URL url,
org.apache.hadoop.conf.Configuration jobConf)
The implementation should try to do a Job end notification only once.
|
boolean notifyOnce(URL url, org.apache.hadoop.conf.Configuration jobConf) throws Exception
MRJobConfig.MR_JOB_END_RETRY_ATTEMPTS
,
MRJobConfig.MR_JOB_END_NOTIFICATION_MAX_ATTEMPTS
and org.apache.hadoop.mapreduce.v2.app.JobEndNotifier on how exactly
this method will be invoked.url
- the URL which needs to be notified
(see MRJobConfig.MR_JOB_END_NOTIFICATION_URL
)jobConf
- the map-reduce Job's configurationException
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.