LoginSignup
1
1

Docker環境でApache NiFiを起動

Last updated at Posted at 2020-01-30

Install Docker

Docker in CentOS 7:
OS: CentOS 7.x

#!/usr/bin/env bash


# Install Docker
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

# sudo yum install docker -y
# sudo systemctl enable docker

# yum remove docker docker-common
sudo yum install docker-ce docker-ce-cli containerd.io -y
sudo systemctl enable docker
sudo systemctl start docker

Install Docker in Mac:
https://docs.docker.jp/docker-for-mac/toc.html

Install NiFi Docker



# Install NiFi Docker
# https://hub.docker.com/r/apache/nifi/
docker run --name nifi \
  -p 8080:8080 \
  -d \
  apache/nifi:latest


# Access: Use
# http://hostname:8080/nifi/

# もし8080以外のポートが良い場合、指定することも可能です。例:9090 port
sudo docker run --name nifi -p 9090:9090 -d -e NIFI_WEB_HTTP_PORT='9090' apache/nifi:latest

CentOS 7.5のインストール画面

[root@zzeng-nipy ~]$ docker run --name nifi \
>   -p 8080:8080 \
>   -d \
>   apache/nifi:latest
Unable to find image 'apache/nifi:latest' locally
latest: Pulling from apache/nifi
741437d97401: Pull complete
34d8874714d7: Pull complete
0a108aa26679: Pull complete
eea0f08c7492: Pull complete
ca74b3d90c15: Pull complete
f11a643c4a85: Pull complete
05eafed73b65: Pull complete
c5ddb7ebf4a2: Pull complete
078ec62a70f5: Pull complete
a4904daa3c74: Pull complete
6ee7d3c8cf48: Pull complete
f1d46c7cfa83: Pull complete
Digest: sha256:85e22b320d9d44638e4847b6eb26800428d9bda61c100732a58c387fa8871ddc
Status: Downloaded newer image for apache/nifi:latest
b0964bb23aabbdfb67702153273c3c67a5276b2b55ae7d9bf8684110c5104a04

Mac環境のInstall画面:
image.png

NiFi のWeb画面に入る

Mac環境でしたら、Localhostでも行けます:
http://localhost:8080/nifi/

image.png

image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1