--- title: Monitor and get alerts for your workflows with the Oozie SLAs author: admin type: post date: 2014-04-03T20:40:11+00:00 url: /hadoop-tutorial-monitor-and-get-alerts-for-your-workflows-with-the-oozie-slas/ sf_thumbnail_type: - none sf_thumbnail_link_type: - link_to_post sf_detail_type: - none sf_page_title: - 1 sf_page_title_style: - standard sf_no_breadcrumbs: - 1 sf_page_title_bg: - none sf_page_title_text_style: - light sf_background_image_size: - cover sf_social_sharing: - 1 sf_sidebar_config: - left-sidebar sf_left_sidebar: - Sidebar-2 sf_right_sidebar: - Sidebar-1 sf_caption_position: - caption-right slide_template: - default categories: - Scheduling ---
Hue now makes Oozie SLAs easy to use! With SLAs, you can automatically be alerted when some workflows are not done within a certain window of time. Oozie SLAs have been improved a lot in Oozie 4, hence this new feature requires Oozie 4.x.
SLAs can be setup in the Editor in the advanced tabs of:Workflow properties
Workflow action properties
Coordinator properties
SLAs can be visualized In the Dashboard:
New main SLA tab for searching and graphing
Individual SLA tab for single workflow or coordinator
We do not cover setup of JMS notifications here. JMS enables clients to be alerted in real time of the notifications (instead of pooling like in this tutorial). With Hue, you can visualize the success of your job in a timelime and setup email-notification in case of alerts.
As usual feel free to comment on the hue-user list or @gethue!
Note
How to enable SLA in Oozie itself?
First make sure you are using Oozie 4. If you need to upgrade from Oozie 3, don’t forget to update the Oozie sharelib with:
{{< highlight bash >}} sudo -u oozie /usr/lib/oozie/bin/oozie-setup.sh sharelib create -fs hdfs://localhost:8020 -locallib /usr/lib/oozie/oozie-sharelib-yarn.tar.gz {{< /highlight >}}If for some reason you need to reset the Oozie DB, delete it and recreate it with:
{{< highlight bash >}} sudo -u oozie /usr/lib/oozie/bin/ooziedb.sh create -sqlfile oozie.sql -run {{< /highlight >}}
Note
In order to avoid the exception below, you should not have the SLA properties in oozie-site.xml.
Then open oozie-site.xml and add these properties and restart Oozie:
{{< highlight xml >}}