1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MACにApache NiFiをインストール(勉強用環境)

Last updated at Posted at 2023-01-12

1. Download Zip files

https://nifi.apache.org/download.html
現時点(2025/02)、最新バージョンをダウンロード
NiFi 2.2.0
https://dlcdn.apache.org/nifi/2.2.0/nifi-2.2.0-bin.zip

MBPにダウンロードした後、解凍。


chmod +x bin/nifi.sh

NiFi 2.2はJDK21が必要です。最初小生のJDK17で実行したら下記エラーが出ました。

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
NIFI_HOME=/Users/zzeng/Downloads/tools/nifi/nifi-2.2.0

Error: LinkageError occurred while loading main class org.apache.nifi.authentication.single.user.command.SetSingleUserCredentials
	java.lang.UnsupportedClassVersionError: org/apache/nifi/authentication/single/user/command/SetSingleUserCredentials has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

これでダウンロード:
https://www.oracle.com/java/technologies/javase/jdk21-archive-downloads.html

2. User 作成

export JAVA_HOME=$(/usr/libexec/java_home)
bin/nifi.sh set-single-user-credentials zzeng <パスワード教えないよ>

結果:

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
NIFI_HOME=/Users/zzeng/Downloads/tools/nifi/nifi-2.2.0

Login Identity Providers Processed [/Users/zzeng/Downloads/tools/nifi/nifi-2.2.0/./conf/login-identity-providers.xml]

3. 起動

bin/nifi.sh start
bin/nifi.sh status

netstat -an | grep LIST

下記8443ポート発見:

tcp4       0      0  127.0.0.1.8443         *.*                    LISTEN

4. Login

NiFi 1.19

image.png

NiFi 2.2

image.png

image.png

出来上がり

1
1
2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?