Giter Club home page Giter Club logo

hdf-2.0-nifi-notification-services's Introduction

HDF-2.0-NiFi-Notification-Services

##Short Description:

Steps to configure NiFi Notification Services from Apache Ambari in HDF-2.x version

##Introduction

When the NiFi bootstrap starts or stops NiFi, or detects that it has died unexpectedly, it is able to notify configured recipients. Currently, the only mechanism supplied is to send an e-mail notification.

##Prerequisite

  1. Assuming you already have HDF-2.x Installed on your VM/Server, Ambari, NiFi is up and running with out security.

If not, I would recommend "Ease of Deployment" section of this article to install it [You can also follow this article for Automated installation of HDF cluster or refer hortonworks.com for detailed steps]

##Configuring NiFi property files in Ambari

  1. To setup email notifications we have to update only two configurations file bootstrap.conf and bootstrap-notification-services.xml

  2. We have to update appropriate properties in Ambari to configure it, first we have to edit Template for bootstrap.conf to update below properties. Uncomment below lines in the properties file:

nifi.start.notification.services=email-notification 
nifi.stop.notification.services=email-notification
nifi.dead.notification.services=email-notification

alt tag

  1. Edit Template for bootstrap-notification-services.xml and make sure your SMTP settings are updated, and are uncommented. Sample configuration is given below:
<service> 
<id>email-notification</id> 
<class>org.apache.nifi.bootstrap.notification.email.EmailNotificationService</class> 
<property name="SMTP Hostname">west.xxxx.server.net</property> 
<property name="SMTP Port">587</property> 
<property name="SMTP Username">[email protected]</property> 
<property name="SMTP Password">Th1sisn0tmypassw0rd</property>   
<property name="SMTP TLS">true</property> 
<property name="From">jgeorge@hortonworks</property> 
<property name="To">[email protected]</property> 
</service>

alt tag

  1. Save the Config changes in Ambari after uncommenting the, property, confirm when asked and restart service.

##Testing NiFi Notification Services

  1. Once restarted, you will see both stopped and started alerts in your inbox with details.
Stopped Email Alert:

alt tag

Started Email Alert:

alt tag

  1. Try out stopping and killing NiFi process [make sure you don’t kill bootstrap process which monitors NiFi which in turn restarts NiFi process.]
Died Email Alert:

alt tag

##References

NiFi notification_services

Thanks,

Jobin George

hdf-2.0-nifi-notification-services's People

Contributors

jobinthompu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.