<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mikołaj Michałowski on Medium]]></title>
        <description><![CDATA[Stories by Mikołaj Michałowski on Medium]]></description>
        <link>https://medium.com/@miho120?source=rss-54d6faab02cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RgDnAjAKeTVtL4xWsSgEQA@2x.jpeg</url>
            <title>Stories by Mikołaj Michałowski on Medium</title>
            <link>https://medium.com/@miho120?source=rss-54d6faab02cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 00:50:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@miho120/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating Apache Airflow with Apache Ambari]]></title>
            <link>https://miho120.medium.com/integrating-apache-airflow-with-apache-ambari-ccab2c90173?source=rss-54d6faab02cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccab2c90173</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ambari]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[airflow]]></category>
            <dc:creator><![CDATA[Mikołaj Michałowski]]></dc:creator>
            <pubDate>Mon, 26 Mar 2018 11:04:39 GMT</pubDate>
            <atom:updated>2018-03-27T07:14:06.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vgJFTjNolLntT-6zIAdghw.png" /></figure><p>Some time ago I was wondering why useful services that could be integrated with Apache Ambari didn’t have such integration. Inasmuch as I had had some experience with creating custom management packs for ambari and I had made a few management packs with custom services we use, I thought would be great to see Apache Airflow in ambari and have a possibility to manage it.</p><p>So I’ve made such management pack with airflow for ambari. The Mpack allows you to install/configure an airflow instance directly from ambari. Also, I committed it to GitHub, so you can find the Mpack on my GitHub page.</p><p><a href="https://github.com/miho120/ambari-airflow-mpack">miho120/ambari-airflow-mpack</a></p><p>If you’re worried about it’s not typical installation, I’m going to calm your worrying. Airflow deployment process from ambari is the same process as from official airflow documentation. What does it mean? That means ambari installs airflow from pip repository, creates systemd scripts and start/stop airflow services with the systemd scripts. So ambari performs next operations:</p><pre><strong>Installation:</strong> pip install apache-airflow[all]==1.9.0 apache-airflow[celery]==1.9.0<br><strong>Start/Stop (e.g. webserver):</strong> service airflow-webserver start</pre><p>Advantages of the management pack are:<br>1. Installing airflow.<br>2. Managing airflow.<br>3. Checking services status.<br>4. Getting ambari alert when airflow web server service is unreachable.<br>5. Using ambari “Quick Links” to access airflow web part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*VSPm7FhWxFjKUOze_AYIpg.png" /></figure><p>So if you want to see the same in your ambari, let’s go ahead through the installation process.</p><h4>Installing Apache Airflow management pack</h4><p><strong>Preparing ambari</strong></p><p>First of all, you need to install the Mpack in ambari. How? Just download ‘airflow-service-mpack.tar.gz’ from <a href="https://github.com/miho120/ambari-airflow-mpack">GitHub page</a>. Then log in to ambari server host by ssh and follow steps below:</p><ol><li>Stop Ambari server.</li></ol><pre>ambari-server stop</pre><p>2. Install the Apache Airflow management pack.</p><pre>ambari-server install-mpack --mpack=airflow-service-mpack.tar.gz</pre><p>3. Start Ambari server.</p><pre>ambari-server start</pre><p><strong>Deploying Apache Airflow from ambari</strong></p><p>Now it’s as easy as deploying any other service available in HDP stack.</p><pre>1. Action - Add service.<br>2. Select Apache Airflow service.<br>3. Choose destination server for web server service(s) and scheduler service(s).<br>4. Choose destination server for worker service(s).<br>5. Then you may change airflow configuration.<br>6. Deploy!</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*TxlPO-jjbYnIL0sAAds3Jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDUBpS7SDefutdlwCzJVQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FmVzBIWmAZ61-bUk5g6Wxg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xY9Y-_6gIVJIa5SFeaUsOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbS62exPMfuLZgQ7EQyCsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpAdXqlPsY0fWbl-cXZSeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZHH0PMThKLibUaOX8mnjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQfAQddx88ASzFdxlXJjDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JKYukKbe0YCQQUhZDKbjcg.png" /></figure><p><strong>Finalizing installation</strong></p><p>So, now you should be able to see airflow service in your ambari.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTAp0Fxw7i7u_5PKodquug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*LAdJDCDZc56pq6aXRP9oAA.png" /></figure><h4>Virtual environment support</h4><p>If you want to run apache airflow in a virtual environment, you should modify startup script “AIRFLOW_HOME/airflow_control.sh”.<br>For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/420b27ed9e22037bd2d09563395dc97b/href">https://medium.com/media/420b27ed9e22037bd2d09563395dc97b/href</a></iframe><h4>P.S.</h4><p>If you want to use airflow worker with celery executor and/or make your airflow HA, please read this awesome article written by <a href="https://medium.com/u/f2544dbfe15e">WB Advanced Analytics</a> as well.</p><p><a href="https://medium.com/@ingwbaa/airflow-ha-environment-c60ddca825a9">Apache Airflow HA environment</a></p><h4>Enjoy and thanks for reading!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccab2c90173" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>