Close Menu
Java HelpsJava Helps
    What's Hot

    Things To Do After Installing IntelliJ IDEA

    December 20, 2022

    How to Set Proxy for IntelliJ IDEA?

    December 20, 2022

    What is Garbage Collection?

    December 7, 2022
    Facebook X (Twitter) Instagram
    Java HelpsJava Helps
    • Home
    • How To
      1. Install
      2. Run
      3. Configure
      4. View All

      How to Install MySQL with phpMyAdmin on Ubuntu?

      December 4, 2022

      Install The Latest IntelliJ IDEA on Linux

      November 28, 2022

      Install The Latest Apache Maven on Linux

      November 27, 2022

      Install The Latest Oracle JDK on Linux

      November 27, 2022

      Run NiFi Cluster in Docker with SSL Enabled

      December 6, 2022

      How to Run Apache NiFi Docker on Mac M1?

      December 1, 2022

      How to Run Apache NiFi on Docker?

      December 1, 2022

      Create A New Maven Project In IntelliJ IDEA

      November 29, 2022

      Things To Do After Installing IntelliJ IDEA

      December 20, 2022

      How to Set Proxy for IntelliJ IDEA?

      December 20, 2022

      How to Set Proxy for Maven?

      December 6, 2022

      How to Create a Fat JAR Using Maven?

      December 5, 2022

      Things To Do After Installing IntelliJ IDEA

      December 20, 2022

      How to Set Proxy for IntelliJ IDEA?

      December 20, 2022

      Manage GitHub Artifact Storage Quota

      December 6, 2022

      Run NiFi Cluster in Docker with SSL Enabled

      December 6, 2022
    • Hello World
      1. Framework
      2. Library
      3. View All

      JPA Hello World! using Hibernate and MySQL

      December 3, 2022

      Jersey 3.x – Hello World!

      December 2, 2022

      Microservices Framework for Java (MSF4J) – Hello World!

      December 1, 2022

      How to Parse PCAP files in Java?

      November 30, 2022

      JPA Hello World! using Hibernate and MySQL

      December 3, 2022

      Jersey 3.x – Hello World!

      December 2, 2022

      Microservices Framework for Java (MSF4J) – Hello World!

      December 1, 2022

      How to Parse PCAP files in Java?

      November 30, 2022
    • More
      • Privacy Policy
        • Java Helps
        • Android Apps
      • Contact US
      • About
    Facebook X (Twitter) Instagram
    Java HelpsJava Helps
    Home » How to Run Apache NiFi on Docker?
    NiFi

    How to Run Apache NiFi on Docker?

    Gobinath LoganathanBy Gobinath LoganathanDecember 1, 2022Updated:December 6, 2022No Comments2 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Apache NiFi: the famous ETL tool to integrate different data endpoints together provides a friendly GUI to control data pipelines even for non-techy people. For anyone who wants to play with Apache NiFi, running Apache NiFi on Docker is an easy solution to get quick access. Running Apache NiFi on Docker is a simple and hassle-free process if you know the port to access. This article explains how to get Apache NiFi running in Docker on a Linux machine.

    If you are using Mac Silicon M1/M2, follow this article instead: How to Run Apache NiFi Docker on Mac M1?

    Spin Up Apache NiFi on Docker

    Step 1:
    Pull the latest Nifi image from the docker repository.

    docker pull apache/nifi:latest

    Step 2:
    Run Apache Nifi as a docker container.

    docker run --name nifi -p 8443:8443 -e NIFI_WEB_HTTPS_PORT='8443' -d apache/nifi:latest

    Extract the Credentials from Logs

    Step 1:
    Run the following command to get the NiFi logs from the Docker container.

    docker logs -f nifi

    Step 2:
    Look for the following line to get the port Apache NiFi is running.

    INFO [main] org.apache.nifi.web.server.JettyServer https://4cdc79d1487f:8443/nifi

    Above line tells that the NiFi dashboard is running at port number 8443. This port number must be the same as the port number defined in the docker run command.

    Scroll further up and look for the lines with the temporary username and password.

    Generated Username [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx]
    Generated Password [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]

    Copy the username and password.

    In a production environment, the username and password must be configured manually. However, the scope of this article is limited to just spinning up a NiFi container for testing. Therefore, we can continue with the temporary username and password.

    To start NiFi with your own username and password, use the following command instead:

    docker run --name nifi -p 8443:8443 -e SINGLE_USER_CREDENTIALS_USERNAME=admin -e SINGLE_USER_CREDENTIALS_PASSWORD=ctsBtRBKHRAx69EqUghvvgEvjnaLjFEB -d apache/nifi:latest

    Access Apache NiFi Dashboard

    Step 1:

    Visit https://localhost:8443/nifi. The browser may warn you that the connection is not private because the SSL certificate is not valid. Ignore the warning and proceed to the site.


    Step 2:
    Use the username and password copied in Step 4 to log in to the Apache NiFi dashboard.

    If you find this article useful, please share your thoughts below. If you have any questions or issues with getting Apache NiFi running on Docker, you can ask your questions in the comments. Java Helps community will try our best to answer your questions.

    big data etl nifi
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Run NiFi Cluster in Docker with SSL Enabled

    December 6, 2022

    Presto SQL for Newbies

    December 4, 2022

    Types of Joins in Presto Explained

    December 4, 2022

    Presto SQL: Join Algorithms Explained

    December 4, 2022

    How to Run Apache NiFi Docker on Mac M1?

    December 1, 2022

    Create A New Maven Project In IntelliJ IDEA

    November 29, 2022
    Don't Miss
    Configure

    Things To Do After Installing IntelliJ IDEA

    December 20, 2022

    IntelliJ Idea: the famous IDE for JVM languages including Java, Scala, and Kotlin. If you…

    How to Set Proxy for IntelliJ IDEA?

    December 20, 2022

    What is Garbage Collection?

    December 7, 2022

    Manage GitHub Artifact Storage Quota

    December 6, 2022
    Our Picks

    Things To Do After Installing IntelliJ IDEA

    December 20, 2022

    How to Set Proxy for IntelliJ IDEA?

    December 20, 2022

    What is Garbage Collection?

    December 7, 2022

    Manage GitHub Artifact Storage Quota

    December 6, 2022
    About Us
    About Us

    Java Helps is the platform to share all about the Java ecosystem. All the sample code available on Java Helps articles are published under Apache 2.0 License. Readers are free to use them according to the Apache 2.0 License.

    "The world is my town; its people my kinsmen."
    -Kaṉiyan Pūngunṟanār

    Email Us: www.javahelps@gmail.com

    Our Picks

    Things To Do After Installing IntelliJ IDEA

    December 20, 2022

    How to Set Proxy for IntelliJ IDEA?

    December 20, 2022

    What is Garbage Collection?

    December 7, 2022
    New Comments

      Type above and press Enter to search. Press Esc to cancel.

      Go to mobile version